A reimplementation of Mario Kart Wii's physics engine in C++
Loading...
Searching...
No Matches
Kart::CollisionData Struct Reference

#include <CollisionGroup.hh>

Description

Information about the current collision and its properties.

See also
KCollisionTypes.hh

Definition at line 17 of file CollisionGroup.hh.

Public Member Functions

void reset ()
 

Public Attributes

EGG::Vector3f tangentOff
 
EGG::Vector3f floorNrm
 
EGG::Vector3f wallNrm
 
EGG::Vector3f noBounceWallNrm
 
EGG::Vector3f vel
 
EGG::Vector3f relPos
 
EGG::Vector3f movement
 
f32 speedFactor
 
f32 rotFactor
 
Field::KCLTypeMask closestFloorFlags
 The KCL flag's KColType.
 
u32 closestFloorSettings
 The KCL flag's "variant".
 
s32 intensity
 The KCL flag's "wheel depth".
 
f32 colPerpendicularity
 
bool bFloor
 Set if colliding with KCL which satisfies KCL_TYPE_FLOOR.
 
bool bWall
 Set if colliding with KCL which satisfies KCL_TYPE_WALL.
 
bool bInvisibleWall
 
bool bWall3
 Set if colliding with COL_TYPE_WALL_2.
 
bool bInvisibleWallOnly
 
bool bSoftWall
 
bool bTrickable
 
bool bWallAtLeftCloser
 
bool bWallAtRightCloser
 

Member Function Documentation

◆ reset()

void Kart::CollisionData::reset ( )
0x805B821C

Definition at line 6 of file CollisionGroup.cc.

Member Data Documentation

◆ bFloor

bool Kart::CollisionData::bFloor

Set if colliding with KCL which satisfies KCL_TYPE_FLOOR.

Definition at line 34 of file CollisionGroup.hh.

◆ bInvisibleWall

bool Kart::CollisionData::bInvisibleWall

Definition at line 36 of file CollisionGroup.hh.

◆ bInvisibleWallOnly

bool Kart::CollisionData::bInvisibleWallOnly

Definition at line 38 of file CollisionGroup.hh.

◆ bSoftWall

bool Kart::CollisionData::bSoftWall

Definition at line 39 of file CollisionGroup.hh.

◆ bTrickable

bool Kart::CollisionData::bTrickable

Definition at line 40 of file CollisionGroup.hh.

◆ bWall

bool Kart::CollisionData::bWall

Set if colliding with KCL which satisfies KCL_TYPE_WALL.

Definition at line 35 of file CollisionGroup.hh.

◆ bWall3

bool Kart::CollisionData::bWall3

Set if colliding with COL_TYPE_WALL_2.

Definition at line 37 of file CollisionGroup.hh.

◆ bWallAtLeftCloser

bool Kart::CollisionData::bWallAtLeftCloser

Definition at line 41 of file CollisionGroup.hh.

◆ bWallAtRightCloser

bool Kart::CollisionData::bWallAtRightCloser

Definition at line 42 of file CollisionGroup.hh.

◆ closestFloorFlags

Field::KCLTypeMask Kart::CollisionData::closestFloorFlags

The KCL flag's KColType.

Definition at line 29 of file CollisionGroup.hh.

◆ closestFloorSettings

u32 Kart::CollisionData::closestFloorSettings

The KCL flag's "variant".

Definition at line 30 of file CollisionGroup.hh.

◆ colPerpendicularity

f32 Kart::CollisionData::colPerpendicularity

Definition at line 32 of file CollisionGroup.hh.

◆ floorNrm

EGG::Vector3f Kart::CollisionData::floorNrm

Definition at line 21 of file CollisionGroup.hh.

◆ intensity

s32 Kart::CollisionData::intensity

The KCL flag's "wheel depth".

Definition at line 31 of file CollisionGroup.hh.

◆ movement

EGG::Vector3f Kart::CollisionData::movement

Definition at line 26 of file CollisionGroup.hh.

◆ noBounceWallNrm

EGG::Vector3f Kart::CollisionData::noBounceWallNrm

Definition at line 23 of file CollisionGroup.hh.

◆ relPos

EGG::Vector3f Kart::CollisionData::relPos

Definition at line 25 of file CollisionGroup.hh.

◆ rotFactor

f32 Kart::CollisionData::rotFactor

Definition at line 28 of file CollisionGroup.hh.

◆ speedFactor

f32 Kart::CollisionData::speedFactor

Definition at line 27 of file CollisionGroup.hh.

◆ tangentOff

EGG::Vector3f Kart::CollisionData::tangentOff

Definition at line 20 of file CollisionGroup.hh.

◆ vel

EGG::Vector3f Kart::CollisionData::vel

Definition at line 24 of file CollisionGroup.hh.

◆ wallNrm

EGG::Vector3f Kart::CollisionData::wallNrm

Definition at line 22 of file CollisionGroup.hh.