#include <KartSuspensionPhysics.hh>
Physics for a single wheel's suspension.
Definition at line 109 of file KartSuspensionPhysics.hh.
Public Types | |
enum class | TireType { Kart , KartReflected , Bike } |
Every other kart tire is a mirror of the first. Bikes do not leverage this. More... | |
Public Member Functions | |
KartSuspensionPhysics (u16 wheelIdx, TireType TireType, u16 bspWheelIdx) | |
void | init () |
void | reset () |
void | setInitialState () |
void | calcCollision (f32 dt, const EGG::Vector3f &gravity, const EGG::Matrix34f &mat) |
void | calcSuspension (const EGG::Vector3f &forward, const EGG::Vector3f &vehicleMovement) |
Calculates linear force and rotation from the kart's suspension. | |
Private Attributes | |
const BSP::Wheel * | m_bspWheel |
WheelPhysics * | m_tirePhysics |
TireType | m_tireType |
u16 | m_bspWheelIdx |
u16 | m_wheelIdx |
EGG::Vector3f | m_topmostPos |
f32 | m_maxTravelScaled |
EGG::Vector3f | m_bottomDir |
|
strong |
Every other kart tire is a mirror of the first. Bikes do not leverage this.
Definition at line 112 of file KartSuspensionPhysics.hh.
|
0x80599ED4 |
Definition at line 120 of file KartSuspensionPhysics.cc.
|
0x8059A278 |
Definition at line 161 of file KartSuspensionPhysics.cc.
|
0x8059A574 |
Calculates linear force and rotation from the kart's suspension.
Definition at line 191 of file KartSuspensionPhysics.cc.
|
0x80599FA0 |
Definition at line 128 of file KartSuspensionPhysics.cc.
|
0x80599F54 |
Definition at line 134 of file KartSuspensionPhysics.cc.
|
0x8059A02C |
Definition at line 141 of file KartSuspensionPhysics.cc.
|
private |
Definition at line 137 of file KartSuspensionPhysics.hh.
|
private |
Definition at line 130 of file KartSuspensionPhysics.hh.
|
private |
Definition at line 133 of file KartSuspensionPhysics.hh.
|
private |
Definition at line 136 of file KartSuspensionPhysics.hh.
|
private |
Definition at line 131 of file KartSuspensionPhysics.hh.
|
private |
Definition at line 132 of file KartSuspensionPhysics.hh.
|
private |
Definition at line 135 of file KartSuspensionPhysics.hh.
|
private |
Definition at line 134 of file KartSuspensionPhysics.hh.