7 : m_tireType(tireType), m_bspWheelIdx(bspWheelIdx) {}
10KartTire::~KartTire() {
11 delete m_wheelPhysics;
15void KartTire::createPhysics(
u16 tireIdx) {
16 m_wheelPhysics =
new WheelPhysics(tireIdx, 1);
20void KartTire::init(
u16 tireIdx) {
21 createPhysics(tireIdx);
22 m_wheelPhysics->init();
26void KartTire::initBsp() {
27 m_wheelPhysics->initBsp();
31KartTireFront::KartTireFront(KartSuspensionPhysics::TireType tireType,
u16 bspWheelIdx)
32 : KartTire(tireType, bspWheelIdx) {}
35KartTireFront::~KartTireFront() =
default;
38void KartTireFront::createPhysics(
u16 tireIdx) {
39 m_wheelPhysics =
new WheelPhysics(tireIdx, 0);
42KartTireFrontBike::KartTireFrontBike(KartSuspensionPhysics::TireType tireType,
u16 bspWheelIdx)
43 : KartTire(tireType, bspWheelIdx) {}
46KartTireFrontBike::~KartTireFrontBike() =
default;
49void KartTireFrontBike::createPhysics(
u16 tireIdx) {
50 m_wheelPhysics =
new WheelPhysics(tireIdx, 0);
53KartTireRearBike::KartTireRearBike(KartSuspensionPhysics::TireType tireType,
u16 bspWheelIdx)
54 : KartTire(tireType, bspWheelIdx) {}
57KartTireRearBike::~KartTireRearBike() =
default;
60void KartTireRearBike::createPhysics(
u16 tireIdx) {
61 m_wheelPhysics =
new WheelPhysics(tireIdx, 1);
TireType
Every other kart tire is a mirror of the first. Bikes do not leverage this.
Pertains to kart-related functionality.