Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
Functions
platform_displacement.h File Reference
#include "types.h"

Go to the source code of this file.

Functions

void update_mario_platform (void)
 Determine if mario is standing on a platform object, meaning that he is within 4 units of the floor. More...
 
void get_mario_pos (f32 *, f32 *, f32 *)
 Get mario's position and store it in x, y, and z. More...
 
void set_mario_pos (f32, f32, f32)
 Set mario's position. More...
 
void apply_platform_displacement (u32, struct Object *)
 Apply one frame of platform rotation to mario or an object using the given platform. More...
 
void apply_mario_platform_displacement (void)
 If mario's platform is not null, apply platform displacement. More...
 
void clear_mario_platform (void)
 Set mario's platform to NULL. More...
 

Function Documentation

◆ apply_mario_platform_displacement()

void apply_mario_platform_displacement ( void  )

If mario's platform is not null, apply platform displacement.

◆ apply_platform_displacement()

void apply_platform_displacement ( u32  isMario,
struct Object platform 
)

Apply one frame of platform rotation to mario or an object using the given platform.

If isMario is 0, use gCurrentObject.

◆ clear_mario_platform()

void clear_mario_platform ( void  )

Set mario's platform to NULL.

◆ get_mario_pos()

void get_mario_pos ( f32 ,
f32 ,
f32  
)

Get mario's position and store it in x, y, and z.

◆ set_mario_pos()

void set_mario_pos ( f32  ,
f32  ,
f32   
)

Set mario's position.

◆ update_mario_platform()

void update_mario_platform ( void  )

Determine if mario is standing on a platform object, meaning that he is within 4 units of the floor.

Set his referenced platform object accordingly.

If mario moves onto a rotating platform in a PU, the find_floor call