2025-06-04 14:38:33 -04:00
|
|
|
#ifndef PATH_H
|
|
|
|
|
#define PATH_H
|
2025-02-13 18:15:14 -05:00
|
|
|
|
|
|
|
|
#include "ultra64.h"
|
2025-06-04 14:38:33 -04:00
|
|
|
#include "z_math.h"
|
2025-02-13 18:15:14 -05:00
|
|
|
|
|
|
|
|
struct PlayState;
|
|
|
|
|
struct Actor;
|
|
|
|
|
|
|
|
|
|
typedef struct Path {
|
|
|
|
|
/* 0x00 */ u8 count; // number of points in the path
|
|
|
|
|
/* 0x04 */ Vec3s* points; // Segment Address to the array of points
|
|
|
|
|
} Path; // size = 0x8
|
|
|
|
|
|
|
|
|
|
Path* Path_GetByIndex(struct PlayState* play, s16 index, s16 max);
|
|
|
|
|
f32 Path_OrientAndGetDistSq(struct Actor* actor, Path* path, s16 waypoint, s16* yaw);
|
|
|
|
|
void Path_CopyLastPoint(Path* path, Vec3f* dest);
|
|
|
|
|
|
|
|
|
|
#endif
|