A reimplementation of Mario Kart Wii's physics engine in C++
Loading...
Searching...
No Matches
KartSuspension.hh
1#pragma once
2
3#include "game/kart/KartSuspensionPhysics.hh"
4
5namespace Kart {
6
9class KartSuspension : protected KartObjectProxy {
10public:
12 virtual ~KartSuspension();
13
14 void init(u16 wheelIdx, KartSuspensionPhysics::TireType tireType, u16 bspWheelIdx);
15 void initPhysics();
16
18 void setInitialState();
20
22 [[nodiscard]] KartSuspensionPhysics *suspPhysics() {
23 return m_physics;
24 }
26
27private:
28 KartSuspensionPhysics *m_physics;
29};
30
36
42
43} // namespace Kart
Base class for most kart-related objects.
Physics for a single wheel's suspension.
TireType
Every other kart tire is a mirror of the first. Bikes do not leverage this.
Doesn't do much besides hold a pointer to KartSuspensionPhysics.
Pertains to kart-related functionality.