Mario Kart 64
Loading...
Searching...
No Matches
path_calc.inc.c File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void load_track_path (s32 pathIndex)
 
void calculate_track_boundaries (s32 pathIndex)
 
f32 calculate_track_curvature (s32 pathIndex, u16 pathPointIndex)
 
void analize_track_section (s32 pathIndex)
 
s16 calculate_angle_path (s32 pathIndex, s32 pathPointIndex)
 
void analyse_angle_path (s32 pathIndex)
 
void analisze_curved_path (s32 pathIndex)
 
f32 func_80010F40 (f32 arg0, f32 arg1, f32 arg2, UNUSED s32 arg3, UNUSED s32 arg4)
 
f32 func_80010FA0 (f32 arg0, f32 arg1, f32 arg2, UNUSED s32 arg3, UNUSED s32 arg4)
 
s32 func_80011014 (TrackPathPoint *pathDest, TrackPathPoint *path, s32 numPathPoints, UNUSED s32 pathIndex)
 
s32 process_path_data (TrackPathPoint *dest, TrackPathPoint *src)
 
s32 generate_2d_path (Path2D *pathDest, TrackPathPoint *pathSrc, s32 numPathPoints)
 

Function Documentation

◆ analisze_curved_path()

void analisze_curved_path ( s32 pathIndex)
Here is the caller graph for this function:

◆ analize_track_section()

void analize_track_section ( s32 pathIndex)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ analyse_angle_path()

void analyse_angle_path ( s32 pathIndex)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ calculate_angle_path()

s16 calculate_angle_path ( s32 pathIndex,
s32 pathPointIndex )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ calculate_track_boundaries()

void calculate_track_boundaries ( s32 pathIndex)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ calculate_track_curvature()

f32 calculate_track_curvature ( s32 pathIndex,
u16 pathPointIndex )

Calculates the track curvature using two sets of three path. Returns a normalized value indicating curve direction and severity:

  • Positive: Right turn
  • Negative: Left turn
  • Near zero: Straight section
Parameters
pathIndexTrack path index
pathPointIndexStarting pathPoint for calculation
Returns
Normalized curvature value (-1 to 1)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_80010F40()

f32 func_80010F40 ( f32 arg0,
f32 arg1,
f32 arg2,
UNUSED s32 arg3,
UNUSED s32 arg4 )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_80010FA0()

f32 func_80010FA0 ( f32 arg0,
f32 arg1,
f32 arg2,
UNUSED s32 arg3,
UNUSED s32 arg4 )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ func_80011014()

s32 func_80011014 ( TrackPathPoint * pathDest,
TrackPathPoint * path,
s32 numPathPoints,
UNUSED s32 pathIndex )
Returns
's the number of items processed.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ generate_2d_path()

s32 generate_2d_path ( Path2D * pathDest,
TrackPathPoint * pathSrc,
s32 numPathPoints )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ load_track_path()

void load_track_path ( s32 pathIndex)
Todo
Confirm this comment
Here is the call graph for this function:
Here is the caller graph for this function:

◆ process_path_data()

s32 process_path_data ( TrackPathPoint * dest,
TrackPathPoint * src )
Here is the caller graph for this function: