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

#include <KartSuspension.hh>

Description

Doesn't do much besides hold a pointer to KartSuspensionPhysics.

Definition at line 9 of file KartSuspension.hh.

Inheritance diagram for Kart::KartSuspension:

Public Member Functions

void init (u16 wheelIdx, KartSuspensionPhysics::TireType tireType, u16 bspWheelIdx)
 
void initPhysics ()
 

Setters

void setInitialState ()
 

Getters

KartSuspensionPhysicssuspPhysics ()
 

Private Attributes

KartSuspensionPhysicsm_physics
 

Additional Inherited Members

- Protected Member Functions inherited from Kart::KartObjectProxy
void apply (size_t idx)
 
void setPos (const EGG::Vector3f &pos)
 
void setRot (const EGG::Quatf &q)
 
void setInertiaScale (const EGG::Vector3f &scale)
 
KartActionaction ()
 
const KartActionaction () const
 
KartBodybody ()
 
const KartBodybody () const
 
KartCollidecollide ()
 
const KartCollidecollide () const
 
CollisionGroupcollisionGroup ()
 
const CollisionGroupcollisionGroup () const
 
KartMovemove ()
 
const KartMovemove () const
 
KartHalfPipehalfPipe ()
 
const KartHalfPipehalfPipe () const
 
KartJumpjump ()
 
const KartJumpjump () const
 
KartParamparam ()
 
const KartParamparam () const
 
const BSPbsp () const
 
KartPhysicsphysics ()
 
const KartPhysicsphysics () const
 
KartDynamicsdynamics ()
 
const KartDynamicsdynamics () const
 
KartStatestate ()
 
const KartStatestate () const
 
KartSubsub ()
 
const KartSubsub () const
 
KartSuspensionsuspension (u16 suspIdx)
 
const KartSuspensionsuspension (u16 suspIdx) const
 
KartSuspensionPhysicssuspensionPhysics (u16 suspIdx)
 
const KartSuspensionPhysicssuspensionPhysics (u16 suspIdx) const
 
KartTiretire (u16 tireIdx)
 
const KartTiretire (u16 tireIdx) const
 
WheelPhysicstirePhysics (u16 tireIdx)
 
const WheelPhysicstirePhysics (u16 tireIdx) const
 
CollisionDatacollisionData ()
 
const CollisionDatacollisionData () const
 
CollisionDatacollisionData (u16 tireIdx)
 
const CollisionDatacollisionData (u16 tireIdx) const
 
const System::KPadinputs () const
 
Render::KartModelmodel ()
 
const Render::KartModelmodel () const
 
Field::ObjectCollisionKartobjectCollisionKart ()
 
const Field::ObjectCollisionKartobjectCollisionKart () const
 
Field::BoxColUnitboxColUnit ()
 
const Field::BoxColUnitboxColUnit () const
 
const EGG::Vector3fscale () const
 
const EGG::Matrix34fpose () const
 
EGG::Vector3f bodyFront () const
 Returns the third column of the rotation matrix, which is the facing vector.
 
EGG::Vector3f bodyForward () const
 Returns the first column of the rotation matrix, which is the "right" direction.
 
EGG::Vector3f bodyUp () const
 Returns the second column of the rotation matrix, which is the "up" direction.
 
const EGG::Vector3fcomponentXAxis () const
 
const EGG::Vector3fcomponentYAxis () const
 
const EGG::Vector3fcomponentZAxis () const
 
const EGG::Vector3fpos () const
 
const EGG::Vector3fprevPos () const
 
const EGG::QuatffullRot () const
 
const EGG::Vector3fextVel () const
 
const EGG::Vector3fintVel () const
 
const EGG::Vector3fvelocity () const
 
f32 speed () const
 
f32 acceleration () const
 
f32 softSpeedLimit () const
 
const EGG::QuatfmainRot () const
 
const EGG::Vector3fangVel2 () const
 
bool isBike () const
 
u16 suspCount () const
 
u16 tireCount () const
 
bool hasFloorCollision (const WheelPhysics *wheelPhysics) const
 
std::pair< EGG::Vector3f, EGG::Vector3fgetCannonPosRot ()
 
f32 speedRatio () const
 
f32 speedRatioCapped () const
 
bool isInRespawn () const
 
- Static Protected Member Functions inherited from Kart::KartObjectProxy
static std::list< KartObjectProxy * > & proxyList ()
 

Constructor & Destructor Documentation

◆ ~KartSuspension()

Kart::KartSuspension::~KartSuspension ( )
virtual0x8058F52C

Definition at line 9 of file KartSuspension.cc.

Member Function Documentation

◆ init()

void Kart::KartSuspension::init ( u16 wheelIdx,
KartSuspensionPhysics::TireType tireType,
u16 bspWheelIdx )
0x80598B60

Definition at line 14 of file KartSuspension.cc.

◆ initPhysics()

void Kart::KartSuspension::initPhysics ( )
0x80598BD4

Definition at line 19 of file KartSuspension.cc.

◆ setInitialState()

void Kart::KartSuspension::setInitialState ( )
0x80598BE4

Definition at line 24 of file KartSuspension.cc.

◆ suspPhysics()

KartSuspensionPhysics * Kart::KartSuspension::suspPhysics ( )
inlinenodiscard

Definition at line 22 of file KartSuspension.hh.

Member Data Documentation

◆ m_physics

KartSuspensionPhysics* Kart::KartSuspension::m_physics
private

Definition at line 28 of file KartSuspension.hh.