Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
Functions
arrow_lift.inc.c File Reference

Functions

static s32 arrow_lift_move_away (void)
 Behavior for WDW arrow lifts. More...
 
static s8 arrow_lift_move_back (void)
 Move the arrow lift back to its original position. More...
 
void bhv_arrow_lift_loop (void)
 Arrow lift update function. More...
 

Function Documentation

◆ arrow_lift_move_away()

static s32 arrow_lift_move_away ( void  )
static

Behavior for WDW arrow lifts.

When a player stands on an arrow lift, it starts moving between two positions 384 units apart. Arrow lifts move either along the X axis or the Z axis. Their facing angle is always perpendicular to the axis they move on. The angle the arrow lifts move initially is 90ยบ clockwise of the face angle. This means an arrow lift at (0, 0, 0) with face angle 0 (positive Z) will move between (0, 0, 0) and (-384, 0, 0). Move the arrow lift away from its original position.

◆ arrow_lift_move_back()

static s8 arrow_lift_move_back ( void  )
static

Move the arrow lift back to its original position.

◆ bhv_arrow_lift_loop()

void bhv_arrow_lift_loop ( void  )

Arrow lift update function.