#include <KartPhysics.hh>
Manages the lifecycle of KartDynamics, handles moving floors and trick rotation.
Definition at line 13 of file KartPhysics.hh.
Public Member Functions | |
| KartPhysics (bool isBike) | |
| void | reset () |
| void | updatePose () |
| Constructs a transformation matrix from rotation and position. | |
| void | calc (f32 dt, f32 maxSpeed, const EGG::Vector3f &scale, bool air) |
| Computes trick rotation and calls to KartDynamics::calc(). | |
Static Public Member Functions | |
| static KartPhysics * | Create (const KartParam ¶m) |
Setters | |
| void | setPos (const EGG::Vector3f &pos) |
| void | setVelocity (const EGG::Vector3f &vel) |
| void | set_fc (f32 val) |
| void | composeStuntRot (const EGG::Quatf &rot) |
| void | composeExtraRot (const EGG::Quatf &rot) |
| void | composeDecayingStuntRot (const EGG::Quatf &rot) |
| void | composeDecayingExtraRot (const EGG::Quatf &rot) |
| void | composeMovingObjVel (const EGG::Vector3f &v, f32 scalar) |
| void | composeDecayingMovingObjVel (f32 floorScalar, f32 airScalar, bool floor) |
| void | clearDecayingRot () |
Getters | |
| KartDynamics * | dynamics () |
| const KartDynamics * | dynamics () const |
| const EGG::Matrix34f & | pose () const |
| CollisionGroup * | hitboxGroup () |
| const EGG::Vector3f & | xAxis () const |
| const EGG::Vector3f & | yAxis () const |
| const EGG::Vector3f & | zAxis () const |
| const EGG::Vector3f & | pos () const |
| f32 | fc () const |
Private Attributes | |
| KartDynamics * | m_dynamics |
| CollisionGroup * | m_hitboxGroup |
| EGG::Vector3f | m_pos |
| EGG::Quatf | m_decayingStuntRot |
| EGG::Quatf | m_instantaneousStuntRot |
| EGG::Quatf | m_specialRot |
| EGG::Quatf | m_decayingExtraRot |
| Rotation that occurs when landing from a trick. | |
| EGG::Quatf | m_instantaneousExtraRot |
| EGG::Quatf | m_extraRot |
| EGG::Vector3f | m_movingObjVel |
| EGG::Matrix34f | m_pose |
| The kart's current rotation and position. | |
| EGG::Vector3f | m_xAxis |
| The first column of the pose. | |
| EGG::Vector3f | m_yAxis |
| The second column of the pose. | |
| EGG::Vector3f | m_zAxis |
| The third column of the pose. | |
| EGG::Vector3f | m_velocity |
| Copied from KartDynamics. | |
| f32 | m_fc |
|
0x8059F5BC |
Definition at line 8 of file KartPhysics.cc.
|
0x8059F6F8 |
Definition at line 16 of file KartPhysics.cc.
|
0x8059F968 |
Computes trick rotation and calls to KartDynamics::calc().
| dt | delta time. It's always 1.0f. |
| maxSpeed | 120.0f, unless we're in a bullet (145.0f) |
| air | Whether we're touching ground. Currently unused. |
Definition at line 54 of file KartPhysics.cc.
|
inline0x805A0410 |
Definition at line 69 of file KartPhysics.hh.
|
inline0x8059FE94 |
Definition at line 52 of file KartPhysics.hh.
|
inline0x805A00D0 |
Definition at line 63 of file KartPhysics.hh.
|
inline0x8059FDD0 |
Definition at line 47 of file KartPhysics.hh.
|
inline0x8059FD0C |
Definition at line 42 of file KartPhysics.hh.
|
inline0x805A0050 |
Definition at line 57 of file KartPhysics.hh.
|
inline0x8059FC48 |
Definition at line 37 of file KartPhysics.hh.
|
staticnodiscard0x805A04A0 |
Definition at line 71 of file KartPhysics.cc.
|
inlinenodiscard |
Definition at line 76 of file KartPhysics.hh.
|
inlinenodiscard |
Definition at line 80 of file KartPhysics.hh.
|
inlinenodiscard |
Definition at line 108 of file KartPhysics.hh.
|
inlinenodiscard |
Definition at line 88 of file KartPhysics.hh.
|
inlinenodiscard |
Definition at line 104 of file KartPhysics.hh.
|
inlinenodiscard |
Definition at line 84 of file KartPhysics.hh.
|
0x8059F7C8 |
Definition at line 22 of file KartPhysics.cc.
|
inline |
Definition at line 32 of file KartPhysics.hh.
|
inline |
Definition at line 24 of file KartPhysics.hh.
|
inline |
Definition at line 28 of file KartPhysics.hh.
|
0x805A0340 |
Constructs a transformation matrix from rotation and position.
Definition at line 42 of file KartPhysics.cc.
|
inlinenodiscard |
Definition at line 92 of file KartPhysics.hh.
|
inlinenodiscard |
Definition at line 96 of file KartPhysics.hh.
|
inlinenodiscard |
Definition at line 100 of file KartPhysics.hh.
|
private |
Rotation that occurs when landing from a trick.
Definition at line 123 of file KartPhysics.hh.
|
private |
Definition at line 119 of file KartPhysics.hh.
|
private |
Definition at line 116 of file KartPhysics.hh.
|
private |
Definition at line 125 of file KartPhysics.hh.
|
private |
Definition at line 132 of file KartPhysics.hh.
|
private |
Definition at line 117 of file KartPhysics.hh.
|
private |
Definition at line 124 of file KartPhysics.hh.
|
private |
Definition at line 120 of file KartPhysics.hh.
|
private |
Definition at line 126 of file KartPhysics.hh.
|
private |
Definition at line 118 of file KartPhysics.hh.
|
private |
The kart's current rotation and position.
Definition at line 127 of file KartPhysics.hh.
|
private |
Definition at line 121 of file KartPhysics.hh.
|
private |
Copied from KartDynamics.
Definition at line 131 of file KartPhysics.hh.
|
private |
The first column of the pose.
Definition at line 128 of file KartPhysics.hh.
|
private |
The second column of the pose.
Definition at line 129 of file KartPhysics.hh.
|
private |
The third column of the pose.
Definition at line 130 of file KartPhysics.hh.