A reimplementation of Mario Kart Wii's physics engine in C++
Loading...
Searching...
No Matches
KartSuspension.cc
1#include "KartSuspension.hh"
2
3namespace Kart {
4
6KartSuspension::KartSuspension() = default;
7
9KartSuspension::~KartSuspension() {
10 delete m_physics;
11}
12
14void KartSuspension::init(u16 wheelIdx, KartSuspensionPhysics::TireType tireType, u16 bspWheelIdx) {
15 m_physics = new KartSuspensionPhysics(wheelIdx, tireType, bspWheelIdx);
16}
17
19void KartSuspension::initPhysics() {
20 m_physics->init();
21}
22
24void KartSuspension::setInitialState() {
25 m_physics->setInitialState();
26}
27
28KartSuspensionFrontBike::KartSuspensionFrontBike() = default;
29
31KartSuspensionFrontBike::~KartSuspensionFrontBike() = default;
32
33KartSuspensionRearBike::KartSuspensionRearBike() = default;
34
36KartSuspensionRearBike::~KartSuspensionRearBike() = default;
37
38} // namespace Kart
TireType
Every other kart tire is a mirror of the first. Bikes do not leverage this.
Pertains to kart-related functionality.