SSBM Decomp
Loading...
Searching...
No Matches
grBigBlue_CarLane Struct Reference

Used by multiple Big Blue Ground subtypes (track, road, car gobjs). More...

#include <types.h>

Data Fields

u8 state: 6
u8 state_lo: 2
u8 x1
s8 x2
u8 x3
s32 x4
s32 x8
Vec3 pos
u8 pad_18 [0x40 - 0x18]

Detailed Description

Used by multiple Big Blue Ground subtypes (track, road, car gobjs).

Different gobjs interpret the same offsets differently.

Track gobj (ID 32): uses xC8 as HSD_JObj*[30], xCC as u8[30] flags. Road gobj (ID 34): uses xCC as f32 velocity, xD0/xD8 for position. Car gobj (ID 33): per-lane data at 0x40-byte stride from gp+D4, with fields: state(+0), target(+4), delta(+8), pos Vec3(+C), lateral(+20), direction(+2C), gravity(+30), height(+34), velocity(+38), accel(+3C), rotation(+40), amplitude(+44), angular_vel(+48). Per-lane data for the Big Blue car gobj (ID 33), 0x40-byte stride from gp+D4. Only the fields read by the game logic are named here.

Field Documentation

◆ state

u8 grBigBlue_CarLane::state

◆ state_lo

u8 grBigBlue_CarLane::state_lo

◆ x1

u8 grBigBlue_CarLane::x1

◆ x2

s8 grBigBlue_CarLane::x2

◆ x3

u8 grBigBlue_CarLane::x3

◆ x4

s32 grBigBlue_CarLane::x4

◆ x8

s32 grBigBlue_CarLane::x8

◆ pos

Vec3 grBigBlue_CarLane::pos

◆ pad_18

u8 grBigBlue_CarLane::pad_18[0x40 - 0x18]

The documentation for this struct was generated from the following file: