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

Functions

void bhv_falling_pillar_init (void)
 Initiates various physics params for the pillar. More...
 
void bhv_falling_pillar_spawn_hitboxes (void)
 Spawns 4 hitboxes with Y coordinates offset. More...
 
s16 bhv_falling_pillar_calculate_angle_in_front_of_mario (void)
 Computes the angle from current pillar position to 500 units in front of Mario. More...
 
void bhv_falling_pillar_loop (void)
 Falling pillar main logic loop. More...
 
void bhv_falling_pillar_hitbox_loop (void)
 Main loop for the invisible hitboxes. More...
 

Variables

static struct ObjectHitbox sFallingPillarHitbox
 Behavior for the falling pillars inside the underwater cave area of Jolly Roger Bay. More...
 

Function Documentation

◆ bhv_falling_pillar_calculate_angle_in_front_of_mario()

s16 bhv_falling_pillar_calculate_angle_in_front_of_mario ( void  )

Computes the angle from current pillar position to 500 units in front of Mario.

◆ bhv_falling_pillar_hitbox_loop()

void bhv_falling_pillar_hitbox_loop ( void  )

Main loop for the invisible hitboxes.

◆ bhv_falling_pillar_init()

void bhv_falling_pillar_init ( void  )

Initiates various physics params for the pillar.

◆ bhv_falling_pillar_loop()

void bhv_falling_pillar_loop ( void  )

Falling pillar main logic loop.

◆ bhv_falling_pillar_spawn_hitboxes()

void bhv_falling_pillar_spawn_hitboxes ( void  )

Spawns 4 hitboxes with Y coordinates offset.

Variable Documentation

◆ sFallingPillarHitbox

struct ObjectHitbox sFallingPillarHitbox
static
Initial value:
= {
150,
3,
0,
0,
150,
300,
0,
0,
}
#define INTERACT_DAMAGE
Definition: interaction.h:9

Behavior for the falling pillars inside the underwater cave area of Jolly Roger Bay.

Also includes behavior for the invisible hitboxes they spawn.