#include <KartScale.hh>
Mainly responsible for calculating scaling for the squish/unsquish animation.
Definition at line 8 of file KartScale.hh.
Public Member Functions | |
| void | reset () |
| void | calc () |
| void | startCrush () |
| void | startUncrush () |
| const EGG::Vector3f & | currScale () 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 | |
| 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_currScale |
| The computed scale for the current frame. | |
Static Private Attributes | |
| static constexpr f32 | CRUSH_SCALE = 0.3f |
Additional Inherited Members | |
Protected Member Functions inherited from Kart::KartObjectProxy | |
| void | apply (size_t idx) |
| void | setPos (const EGG::Vector3f &pos) |
| void | setRot (const EGG::Quatf &q) |
| void | setInertiaScale (const EGG::Vector3f &scale) |
| KartAction * | action () |
| const KartAction * | action () const |
| KartBody * | body () |
| const KartBody * | body () const |
| KartCollide * | collide () |
| const KartCollide * | collide () const |
| CollisionGroup * | collisionGroup () |
| const CollisionGroup * | collisionGroup () const |
| KartMove * | move () |
| const KartMove * | move () const |
| KartHalfPipe * | halfPipe () |
| const KartHalfPipe * | halfPipe () const |
| KartScale * | kartScale () |
| const KartScale * | kartScale () const |
| KartJump * | jump () |
| const KartJump * | jump () const |
| KartParam * | param () |
| const KartParam * | param () const |
| const BSP & | bsp () const |
| KartPhysics * | physics () |
| const KartPhysics * | physics () const |
| KartDynamics * | dynamics () |
| const KartDynamics * | dynamics () const |
| KartState * | state () |
| const KartState * | state () const |
| KartSub * | sub () |
| const KartSub * | sub () const |
| KartSuspension * | suspension (u16 suspIdx) |
| const KartSuspension * | suspension (u16 suspIdx) const |
| KartSuspensionPhysics * | suspensionPhysics (u16 suspIdx) |
| const KartSuspensionPhysics * | suspensionPhysics (u16 suspIdx) const |
| KartTire * | tire (u16 tireIdx) |
| const KartTire * | tire (u16 tireIdx) const |
| WheelPhysics * | tirePhysics (u16 tireIdx) |
| const WheelPhysics * | tirePhysics (u16 tireIdx) const |
| CollisionData & | collisionData () |
| const CollisionData & | collisionData () const |
| CollisionData & | collisionData (u16 tireIdx) |
| const CollisionData & | collisionData (u16 tireIdx) const |
| const System::KPad * | inputs () const |
| Render::KartModel * | model () |
| const Render::KartModel * | model () const |
| Field::ObjectCollisionKart * | objectCollisionKart () |
| const Field::ObjectCollisionKart * | objectCollisionKart () const |
| Field::BoxColUnit * | boxColUnit () |
| const Field::BoxColUnit * | boxColUnit () const |
| const EGG::Vector3f & | scale () const |
| const EGG::Matrix34f & | pose () const |
| EGG::Vector3f | bodyFront () const |
| Returns the third column of the rotation matrix, which is the facing vector. | |
| EGG::Vector3f | bodyForward () const |
| Returns the first column of the rotation matrix, which is the "right" direction. | |
| EGG::Vector3f | bodyUp () const |
| Returns the second column of the rotation matrix, which is the "up" direction. | |
| const EGG::Vector3f & | componentXAxis () const |
| const EGG::Vector3f & | componentYAxis () const |
| const EGG::Vector3f & | componentZAxis () const |
| const EGG::Vector3f & | pos () const |
| const EGG::Vector3f & | prevPos () const |
| const EGG::Quatf & | fullRot () const |
| const EGG::Vector3f & | extVel () const |
| const EGG::Vector3f & | intVel () const |
| const EGG::Vector3f & | velocity () const |
| f32 | speed () const |
| f32 | acceleration () const |
| f32 | softSpeedLimit () const |
| const EGG::Quatf & | mainRot () const |
| const EGG::Vector3f & | angVel2 () const |
| bool | isBike () const |
| u16 | suspCount () const |
| u16 | tireCount () const |
| bool | hasFloorCollision (const WheelPhysics *wheelPhysics) const |
| std::pair< EGG::Vector3f, EGG::Vector3f > | getCannonPosRot () |
| f32 | speedRatio () const |
| f32 | speedRatioCapped () const |
| bool | isInRespawn () const |
| Field::KCLTypeMask | wallKclType () const |
| u32 | wallKclVariant () const |
Static Protected Member Functions inherited from Kart::KartObjectProxy | |
| static std::list< KartObjectProxy * > & | proxyList () |
|
strongprivate |
Definition at line 24 of file KartScale.hh.
|
0x8056AD44 |
Definition at line 8 of file KartScale.cc.
|
0x8056B218 |
Definition at line 24 of file KartScale.cc.
|
private0x8056B45C |
Definition at line 45 of file KartScale.cc.
|
inlinenodiscard |
Definition at line 19 of file KartScale.hh.
|
nodiscardprivate0x8056ACF4 |
Definition at line 71 of file KartScale.cc.
|
0x8056AF10 |
Definition at line 16 of file KartScale.cc.
|
0x8056B060 |
Definition at line 29 of file KartScale.cc.
|
0x8056B094 |
Definition at line 37 of file KartScale.cc.
|
staticconstexprprivate |
Definition at line 39 of file KartScale.hh.
|
private |
Set while crush scaling is occurring.
Definition at line 35 of file KartScale.hh.
|
private |
Specifies the current crush/uncrush state.
Definition at line 34 of file KartScale.hh.
|
private |
The computed scale for the current frame.
Definition at line 37 of file KartScale.hh.
|
private |
Current frame of the unsquish animation.
Definition at line 36 of file KartScale.hh.