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

Description

Definition at line 7 of file ObjectDokan.hh.

Inheritance diagram for Field::ObjectDokan:

Public Member Functions

 ObjectDokan (const System::MapdataGeoObj &params)
 
void init () override
 
void calc () override
 
u32 loadFlags () const override
 
void calcCollisionTransform () override
 
Kart::Reaction onCollision (Kart::KartObject *kartObj, Kart::Reaction reactionOnKart, Kart::Reaction reactionOnObj, EGG::Vector3f &hitDepth) override
 
- Public Member Functions inherited from Field::ObjectCollidable
 ObjectCollidable (const System::MapdataGeoObj &params)
 
void load () override
 
f32 getCollisionRadius () const override
 Finds the radius that fits fully in a BoxColUnit.
 
virtual void loadAABB (f32 maxSpeed)
 
virtual void loadAABB (f32 radius, f32 maxSpeed)
 
virtual void processKartReactions (Kart::KartObject *kartObj, Kart::Reaction &reactionOnKart, Kart::Reaction &reactionOnObj)
 
virtual void onWallCollision (Kart::KartObject *, const EGG::Vector3f &)
 
virtual void onObjectCollision (Kart::KartObject *)
 
virtual bool checkCollision (ObjectCollisionBase *lhs, EGG::Vector3f &dist)
 
virtual const EGG::Vector3fgetCollisionTranslation () const
 
virtual ObjectCollisionBasecollision () const
 
- Public Member Functions inherited from Field::ObjectBase
 ObjectBase (const System::MapdataGeoObj &params)
 
virtual void calcModel ()
 
virtual void loadRail ()
 
virtual const char * getKclName () const
 
virtual const EGG::Vector3fgetPosition () const
 
ObjectId id () const
 

Private Member Functions

void calcFloor ()
 

Private Attributes

bool m_b0
 
EGG::Vector3f m_velocity
 

Additional Inherited Members

- Protected Member Functions inherited from Field::ObjectCollidable
void createCollision () override
 
virtual const EGG::Vector3fcollisionCenter () const
 
- Protected Member Functions inherited from Field::ObjectBase
void calcTransform ()
 
- Protected Attributes inherited from Field::ObjectCollidable
ObjectCollisionBasem_collision
 
- Protected Attributes inherited from Field::ObjectBase
ObjectId m_id
 
RailInterpolatorm_railInterpolator
 
BoxColUnitm_boxColUnit
 
u16 m_flags
 
EGG::Vector3f m_pos
 
EGG::Vector3f m_rot
 
EGG::Vector3f m_scale
 
EGG::Matrix34f m_transform
 
const System::MapdataGeoObjm_mapObj
 

Constructor & Destructor Documentation

◆ ObjectDokan()

Field::ObjectDokan::ObjectDokan ( const System::MapdataGeoObj & params)
0x807787F0

Definition at line 10 of file ObjectDokan.cc.

Member Function Documentation

◆ calc()

void Field::ObjectDokan::calc ( )
overridevirtual0x807788C8

Reimplemented from Field::ObjectBase.

Definition at line 21 of file ObjectDokan.cc.

◆ calcCollisionTransform()

void Field::ObjectDokan::calcCollisionTransform ( )
overridevirtual0x80778D50

Reimplemented from Field::ObjectCollidable.

Definition at line 36 of file ObjectDokan.cc.

◆ calcFloor()

void Field::ObjectDokan::calcFloor ( )
private0x807789BC

Definition at line 64 of file ObjectDokan.cc.

◆ init()

void Field::ObjectDokan::init ( )
overridevirtual0x80778830

Reimplemented from Field::ObjectBase.

Definition at line 16 of file ObjectDokan.cc.

◆ loadFlags()

u32 Field::ObjectDokan::loadFlags ( ) const
inlinenodiscardoverridevirtual0x80778FE4

Reimplemented from Field::ObjectBase.

Definition at line 16 of file ObjectDokan.hh.

◆ onCollision()

Kart::Reaction Field::ObjectDokan::onCollision ( Kart::KartObject * kartObj,
Kart::Reaction reactionOnKart,
Kart::Reaction reactionOnObj,
EGG::Vector3f & hitDepth )
overridevirtual0x80778C0C

Reimplemented from Field::ObjectCollidable.

Definition at line 49 of file ObjectDokan.cc.

Member Data Documentation

◆ m_b0

bool Field::ObjectDokan::m_b0
private

Definition at line 28 of file ObjectDokan.hh.

◆ m_velocity

EGG::Vector3f Field::ObjectDokan::m_velocity
private

Definition at line 29 of file ObjectDokan.hh.