#include <KartSuspensionPhysics.hh>
Physics for a single wheel's suspension.
Definition at line 114 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 117 of file KartSuspensionPhysics.hh.
|
0x80599ED4 |
Definition at line 132 of file KartSuspensionPhysics.cc.
|
0x8059A278 |
Definition at line 173 of file KartSuspensionPhysics.cc.
|
0x8059A574 |
Calculates linear force and rotation from the kart's suspension.
Definition at line 203 of file KartSuspensionPhysics.cc.
|
0x80599FA0 |
Definition at line 140 of file KartSuspensionPhysics.cc.
|
0x80599F54 |
Definition at line 146 of file KartSuspensionPhysics.cc.
|
0x8059A02C |
Definition at line 153 of file KartSuspensionPhysics.cc.
|
private |
Definition at line 142 of file KartSuspensionPhysics.hh.
|
private |
Definition at line 135 of file KartSuspensionPhysics.hh.
|
private |
Definition at line 138 of file KartSuspensionPhysics.hh.
|
private |
Definition at line 141 of file KartSuspensionPhysics.hh.
|
private |
Definition at line 136 of file KartSuspensionPhysics.hh.
|
private |
Definition at line 137 of file KartSuspensionPhysics.hh.
|
private |
Definition at line 140 of file KartSuspensionPhysics.hh.
|
private |
Definition at line 139 of file KartSuspensionPhysics.hh.