#include <KartScale.hh>
Mainly responsible for calculating scaling for the squish/unsquish animation.
Definition at line 9 of file KartScale.hh.
Public Member Functions | |
| KartScale (const KartParam::Stats &stats) | |
| void | reset () |
| void | calc () |
| void | startCrush () |
| void | endCrush () |
| void | startShrink (s32 unk) |
| void | endShrink (s32 unk) |
| const EGG::Vector3f & | sizeScale () const |
| const EGG::Vector3f & | pressScale () const |
Private Types | |
| enum class | CrushState { None = -1 , Crush = 0 , Uncrush = 1 } |
Private Member Functions | |
| void | calcCrush () |
| EGG::Vector3f | getAnmScale (f32 frame) const |
Private Attributes | |
| s32 | m_type |
| EGG::Vector3f | m_scaleTransformOffset |
| EGG::Vector3f | m_scaleTransformSlope |
| EGG::Vector3f | m_sizeScale |
| bool | m_scaleAnmActive |
| f32 | m_anmFrame |
| std::array< f32, 4 > | m_scaleTarget |
| CrushState | m_crushState |
| Specifies the current crush/uncrush state. | |
| bool | m_calcCrush |
| Set while crush scaling is occurring. | |
| f32 | m_uncrushAnmFrame |
| Current frame of the unsquish animation. | |
| EGG::Vector3f | m_pressScale |
Static Private Attributes | |
| static constexpr f32 | CRUSH_SCALE = 0.3f |
| static constexpr std::array< f32, 4 > | s_baseScaleStart |
| static constexpr std::array< f32, 4 > | s_baseScaleTarget |
|
strongprivate |
Definition at line 31 of file KartScale.hh.
|
0x8056AD44 |
Definition at line 8 of file KartScale.cc.
|
0x8056B218 |
Definition at line 45 of file KartScale.cc.
|
private0x8056B45C |
Definition at line 111 of file KartScale.cc.
|
0x8056B094 |
Definition at line 81 of file KartScale.cc.
|
0x8056B168 |
Definition at line 100 of file KartScale.cc.
|
nodiscardprivate0x8056ACF4 |
Definition at line 137 of file KartScale.cc.
|
inlinenodiscard |
Definition at line 26 of file KartScale.hh.
|
0x8056AF10 |
Definition at line 31 of file KartScale.cc.
|
inlinenodiscard |
Definition at line 22 of file KartScale.hh.
|
0x8056B060 |
Definition at line 73 of file KartScale.cc.
|
0x8056AFB4 |
Definition at line 89 of file KartScale.cc.
|
staticconstexprprivate |
Definition at line 53 of file KartScale.hh.
|
private |
Definition at line 46 of file KartScale.hh.
|
private |
Set while crush scaling is occurring.
Definition at line 49 of file KartScale.hh.
|
private |
Specifies the current crush/uncrush state.
Definition at line 48 of file KartScale.hh.
|
private |
Definition at line 51 of file KartScale.hh.
|
private |
Definition at line 45 of file KartScale.hh.
|
private |
Definition at line 47 of file KartScale.hh.
|
private |
Definition at line 42 of file KartScale.hh.
|
private |
Definition at line 43 of file KartScale.hh.
|
private |
Definition at line 44 of file KartScale.hh.
|
private |
Definition at line 41 of file KartScale.hh.
|
private |
Current frame of the unsquish animation.
Definition at line 50 of file KartScale.hh.
|
staticconstexprprivate |
Definition at line 55 of file KartScale.hh.
|
staticconstexprprivate |
Definition at line 62 of file KartScale.hh.