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

#include <KartObject.hh>

Description

The highest level abstraction for a bike.

Definition at line 38 of file KartObject.hh.

Inheritance diagram for Kart::KartObjectBike:

Public Member Functions

 KartObjectBike (KartParam *param)
 
KartBodycreateBody (KartPhysics *physics) override
 
void createTires () override
 
- Public Member Functions inherited from Kart::KartObject
 KartObject (KartParam *param)
 
void init ()
 
void initImpl ()
 
void prepare ()
 Sets the initial position and rotation of the kart based off the current track.
 
void prepareTiresAndSuspensions ()
 
void createSub ()
 
void createModel ()
 
void calcSub ()
 
void calc ()
 
const KartAccessoraccessor () const
 
- Public Member Functions inherited from Kart::KartObjectProxy
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
 

Additional Inherited Members

- Static Public Member Functions inherited from Kart::KartObject
static KartObjectCreate (Character character, Vehicle vehicle, u8 playerIdx)
 
- Static Public Member Functions inherited from Kart::KartObjectProxy
static std::list< KartObjectProxy * > & proxyList ()
 
- Protected Member Functions inherited from Kart::KartObjectProxy
void apply (size_t idx)
 
- Protected Attributes inherited from Kart::KartObject
KartAccessor m_pointers
 

Constructor & Destructor Documentation

◆ KartObjectBike()

Kart::KartObjectBike::KartObjectBike ( KartParam * param)
0x8058F20C

Definition at line 207 of file KartObject.cc.

Member Function Documentation

◆ createBody()

KartBody * Kart::KartObjectBike::createBody ( KartPhysics * physics)
nodiscardoverridevirtual0x8058F260

Reimplemented from Kart::KartObject.

Definition at line 213 of file KartObject.cc.

◆ createTires()

void Kart::KartObjectBike::createTires ( )
overridevirtual0x8058F2E8

Reimplemented from Kart::KartObject.

Definition at line 222 of file KartObject.cc.