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

#include <KartModel.hh>

Description

Included in Kinoko because it mysteriously sets an angle member variable in KartBody.

Definition at line 9 of file KartModel.hh.

Inheritance diagram for Kinoko::Render::KartModel:

Public Member Functions

virtual void vf_1c ()
void init ()
void calc ()
void FUN_807CB198 ()
void FUN_807CB530 ()
void FUN_807C7828 (u8 playerIdx, bool isBike)

Private Attributes

bool m_somethingLeft
bool m_somethingRight
f32 _54
f32 _58
f32 _5c
f32 _64
bool m_isInsideDrift
f32 _2e8

Additional Inherited Members

void setPos (const EGG::Vector3f &pos)
void setRot (const EGG::Quatf &q)
void setInertiaScale (const EGG::Vector3f &scale)
KartAction * action ()
const KartAction * action () const
KartBody * body ()
const KartBody * body () const
KartCollide * collide ()
const KartCollide * collide () const
CollisionGroup * collisionGroup ()
const CollisionGroup * collisionGroup () const
KartMove * move ()
const KartMove * move () const
KartHalfPipe * halfPipe ()
const KartHalfPipe * halfPipe () const
KartScale * kartScale ()
const KartScale * kartScale () const
KartJump * jump ()
const KartJump * jump () const
KartParam * param ()
const KartParam * param () const
const BSP & bsp () const
KartPhysics * physics ()
const KartPhysics * physics () const
KartDynamics * dynamics ()
const KartDynamics * dynamics () const
KartState * state ()
const KartState * state () const
KartSub * sub ()
const KartSub * sub () const
KartSuspension * suspension (u16 suspIdx)
const KartSuspension * suspension (u16 suspIdx) const
KartSuspensionPhysics * suspensionPhysics (u16 suspIdx)
const KartSuspensionPhysics * suspensionPhysics (u16 suspIdx) const
KartTire * tire (u16 tireIdx)
const KartTire * tire (u16 tireIdx) const
WheelPhysics * tirePhysics (u16 tireIdx)
const WheelPhysics * tirePhysics (u16 tireIdx) const
CollisionData & collisionData ()
const CollisionData & collisionData () const
CollisionData & collisionData (u16 tireIdx)
const CollisionData & collisionData (u16 tireIdx) const
const System::KPad * inputs () const
Render::KartModel * model ()
const Render::KartModel * model () const
Field::ObjectCollisionKart * objectCollisionKart ()
const Field::ObjectCollisionKart * objectCollisionKart () const
Field::BoxColUnit * boxColUnit ()
const Field::BoxColUnit * boxColUnit () const
const EGG::Vector3f & scale () const
const EGG::Matrix34f & pose () 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::Vector3f & componentXAxis () const
const EGG::Vector3f & componentYAxis () const
const EGG::Vector3f & componentZAxis () const
const EGG::Vector3f & pos () const
const EGG::Vector3f & prevPos () const
const EGG::Quatf & fullRot () const
const EGG::Vector3f & extVel () const
const EGG::Vector3f & intVel () const
const EGG::Vector3f & velocity () const
f32 speed () const
f32 acceleration () const
f32 softSpeedLimit () const
const EGG::Quatf & mainRot () const
const EGG::Vector3f & angVel2 () const
bool isBike () const
u16 suspCount () const
u16 tireCount () const
bool hasFloorCollision (const WheelPhysics *wheelPhysics) const
std::pair< EGG::Vector3f, EGG::Vector3f > getCannonPosRot ()
f32 speedRatio () const
f32 speedRatioCapped () const
bool isInRespawn () const
Field::KCLTypeMask wallKclType () const
u32 wallKclVariant () const
Status & status ()
const Status & status () const
const EGG::Vector3f & wheelPos (u16 idx) const
const EGG::Vector3f & wheelEdgePos (u16 idx) const
f32 cameraDistY () const
s32 hopStickX () const
KartParam::Stats::DriftType vehicleType () const
void apply (size_t idx)
static std::list< KartObjectProxy *, EGG::Allocator< KartObjectProxy * > > & proxyList ()

Constructor & Destructor Documentation

◆ KartModel()

Kinoko::Render::KartModel::KartModel ( )

Definition at line 14 of file KartModel.cc.

Member Function Documentation

◆ calc()

void Kinoko::Render::KartModel::calc ( )
0x807CB360

Definition at line 134 of file KartModel.cc.

◆ FUN_807C7828()

void Kinoko::Render::KartModel::FUN_807C7828 ( u8 playerIdx,
bool isBike )
0x807C7828
Note
This object is labeled as having a poor name. It should be renamed to better represent its purpose.

Definition at line 170 of file KartModel.cc.

◆ FUN_807CB198()

void Kinoko::Render::KartModel::FUN_807CB198 ( )
0x807CB198
Note
This object is labeled as having a poor name. It should be renamed to better represent its purpose.

Definition at line 140 of file KartModel.cc.

◆ FUN_807CB530()

void Kinoko::Render::KartModel::FUN_807CB530 ( )
0x807CB530
Note
This object is labeled as having a poor name. It should be renamed to better represent its purpose.

Definition at line 163 of file KartModel.cc.

◆ init()

void Kinoko::Render::KartModel::init ( )
0x807C8758

Definition at line 127 of file KartModel.cc.

◆ vf_1c()

void Kinoko::Render::KartModel::vf_1c ( )
virtual0x807CD32C

Definition at line 27 of file KartModel.cc.

Member Data Documentation

◆ _2e8

f32 Kinoko::Render::KartModel::_2e8
private

Definition at line 31 of file KartModel.hh.

◆ _54

f32 Kinoko::Render::KartModel::_54
private

Definition at line 26 of file KartModel.hh.

◆ _58

f32 Kinoko::Render::KartModel::_58
private

Definition at line 27 of file KartModel.hh.

◆ _5c

f32 Kinoko::Render::KartModel::_5c
private

Definition at line 28 of file KartModel.hh.

◆ _64

f32 Kinoko::Render::KartModel::_64
private

Definition at line 29 of file KartModel.hh.

◆ m_isInsideDrift

bool Kinoko::Render::KartModel::m_isInsideDrift
private

Definition at line 30 of file KartModel.hh.

◆ m_somethingLeft

bool Kinoko::Render::KartModel::m_somethingLeft
private

Definition at line 24 of file KartModel.hh.

◆ m_somethingRight

bool Kinoko::Render::KartModel::m_somethingRight
private

Definition at line 25 of file KartModel.hh.