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

Functions

void bhv_beta_trampoline_spring_loop (void)
 Behavior for bhvBetaTrampolineTop and bhvBetaTrampolineSpring. More...
 
void bhv_beta_trampoline_top_loop (void)
 Update function for bhvBetaTrampolineTop. More...
 

Function Documentation

◆ bhv_beta_trampoline_spring_loop()

void bhv_beta_trampoline_spring_loop ( void  )

Behavior for bhvBetaTrampolineTop and bhvBetaTrampolineSpring.

This was a trampoline that was never finished. The model and collision are nearly complete finished, but the code was abandoned very early on in its development. The trampoline consists of 3 objects: the top, the spring, and the base. The base is a static object with no behavior. Update function for bhvBetaTrampolineSpring. The spring continuously updates to be 75 units below the top. It then uses its displacement from its original position (i.e. how much the trampoline has compressed) to calculate its vertical scale factor, so that it compresses visually along with the trampoline. The devs were on the right track with the math, but it is incomplete.

◆ bhv_beta_trampoline_top_loop()

void bhv_beta_trampoline_top_loop ( void  )

Update function for bhvBetaTrampolineTop.

This spawns the other 2 trampoline parts when initialized, and sets a boolean for whether Mario's on or off the trampoline. The trampoline top never actually moves, so the spring will never do anything.