3#ifndef TRAM_SDK_FRAMEWORK_PATH_H
4#define TRAM_SDK_FRAMEWORK_PATH_H
Point constrained to a Path.
Definition: path.h:45
void Advance(float)
Advances the follower along the path.
Definition: path.cpp:132
void TurnRight()
Definition: path.cpp:224
PathFollower(Path *path, vec3 initial_pos, PathType type)
Creates a new PathFollower for a path.
Definition: path.cpp:119
uint32_t next
Definition: path.h:64
vec3 GetPosition()
Definition: path.cpp:211
PathType direction
Definition: path.h:66
vec3 GetTangent()
Definition: path.cpp:217
void SetOrientation(vec3)
Definition: path.cpp:201
uint32_t prev
Definition: path.h:63
PathType type
Definition: path.h:65
void Project(vec3)
Definition: path.cpp:179
float progress
Definition: path.h:62
void TurnStraight()
Definition: path.cpp:227
Path * path
Definition: path.h:67
Base class for graphs.
Definition: path.h:27
void LoadFromDisk()
Definition: path.cpp:61
std::vector< PathEdgeInfo > edge_infos
Definition: path.h:42
name_t name
Definition: path.h:41
Path(name_t name)
Definition: path.h:29
void Draw()
Draws the path's line segments.
Definition: path.cpp:112
static Path * Find(name_t name)
Finds a path.
Definition: path.cpp:50
glm::vec3 vec3
Definition: math.h:11
PathType
Definition: path.h:12
@ PATH_RIGHT
Definition: path.h:15
@ PATH_STRAIGHT
Definition: path.h:13
@ PATH_CURVE
Definition: path.h:18
@ PATH_LEFT
Definition: path.h:14
@ PATH_LINEAR
Definition: path.h:17
PathType type
Definition: path.h:22
Interned string type.
Definition: uid.h:10