128 [[nodiscard]]
f32 initHitboxes(
const std::array<BSP::Hitbox, 16> &hitboxes);
const CollisionData & collisionData() const
void createSingleHitbox(f32 radius, const EGG::Vector3f &relPos)
Creates a hitbox to represent a tire.
CollisionData & collisionData()
f32 boundingRadius() const
void setHitboxScale(f32 scale)
Hitbox & hitbox(u16 hitboxIdx)
f32 computeCollisionLimits()
Sets the bounding radius.
owning_span< Hitbox > m_hitboxes
f32 initHitboxes(const std::array< BSP::Hitbox, 16 > &hitboxes)
Initializes the hitbox array based on the KartParam's BSP hitboxes.
CollisionData m_collisionData
Represents a hitbox for the kart body or a wheel.
void setWorldPos(const EGG::Vector3f &pos)
void setRadius(f32 radius)
void calc(f32 totalScale, f32 sinkDepth, const EGG::Vector3f &scale, const EGG::Quatf &rot, const EGG::Vector3f &pos)
Calculates the position of a given hitbox, both relative to the player and world.
const BSP::Hitbox * m_bspHitbox
void setLastPos(const EGG::Vector3f &pos)
const EGG::Vector3f & worldPos() const
const EGG::Vector3f & lastPos() const
const EGG::Vector3f & relPos() const
void setBspHitbox(const BSP::Hitbox *hitbox, bool owns=false)
const BSP::Hitbox * bspHitbox() const
A contiguous storage container that manages the lifecycle of a buffer of a given size.
Pertains to kart-related functionality.
A quaternion, used to represent 3D rotation.
Represents one of the many hitboxes that make up a vehicle.
Information about the current collision and its properties.
bool bMovingWaterDecaySpeed
Player speed will drop if not in mushroom.
u32 closestFloorSettings
The colliding floor KCL flag's "variant".
Field::KCLTypeMask closestFloorFlags
The colliding floor KCL flag's KColType.
EGG::Vector3f roadVelocity
bool bMovingWaterDisableAccel
KC last turn prevents mini-turbo acceleration.
u32 closestWallSettings
The colliding wall KCL flag's "variant".
bool bWall3
Set if colliding with COL_TYPE_WALL_2.
bool bMovingWaterStickyRoad
KC pipe vertical water section.
bool bWall
Set if colliding with KCL which satisfies KCL_TYPE_WALL.
s32 intensity
The KCL flag's "wheel depth".
bool bMovingWaterMomentum
Player will maintain speed for a bit after leaving KCL.
EGG::Vector3f noBounceWallNrm
Field::KCLTypeMask closestWallFlags
The colliding wall KCL flag's KColType.
bool bFloor
Set if colliding with KCL which satisfies KCL_TYPE_FLOOR.
bool bMovingWaterVertical
KC last turn vertical water.