3#include "game/kart/KartObjectManager.hh"
8KartScale::KartScale() {
13KartScale::~KartScale() =
default;
16void KartScale::reset() {
24void KartScale::calc() {
29void KartScale::startCrush() {
37void KartScale::startUncrush() {
45void KartScale::calcCrush() {
46 constexpr f32 SCALE_SPEED = 0.2f;
61 const auto *scaleAnm = KartObjectManager::PressScaleUpAnmChr();
72 const auto *scaleAnm = KartObjectManager::PressScaleUpAnmChr();
74 return scaleAnm->getAnmResult(frame, 0).scale();
bool m_calcCrush
Set while crush scaling is occurring.
EGG::Vector3f m_currScale
The computed scale for the current frame.
CrushState m_crushState
Specifies the current crush/uncrush state.
f32 m_uncrushAnmFrame
Current frame of the unsquish animation.
Pertains to kart-related functionality.