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

Functions

void bhv_pyramid_elevator_init (void)
 Behaviors for bhvPyramidElevator and bhvPyramidElevatorTrajectoryMarkerBall. More...
 
void bhv_pyramid_elevator_loop (void)
 
void bhv_pyramid_elevator_trajectory_marker_ball_loop (void)
 Deactivate the trajectory marker balls if the elevator is not moving. More...
 

Function Documentation

◆ bhv_pyramid_elevator_init()

void bhv_pyramid_elevator_init ( void  )

Behaviors for bhvPyramidElevator and bhvPyramidElevatorTrajectoryMarkerBall.

This controls the elevator that descends Shifting Sand Land's pyramid, as well as the small marker balls that demarcate its trajactory. Generate the ten trajectory marker balls that indicate where the elevator moves.

◆ bhv_pyramid_elevator_loop()

void bhv_pyramid_elevator_loop ( void  )

Do not move until Mario stands on the elevator. When he does, transition to the starting state.

Use a sine wave to start the elevator's movement with a small jolt. After a certain amount of time, transition to a constant-velocity state.

Move downwards with constant velocity. Once at the bottom of the track, transition to the final state.

Use a sine wave to stop the elevator's movement with a small jolt. Then, remain at the bottom of the track.

◆ bhv_pyramid_elevator_trajectory_marker_ball_loop()

void bhv_pyramid_elevator_trajectory_marker_ball_loop ( void  )

Deactivate the trajectory marker balls if the elevator is not moving.

Otherwise, set their scale.