#include <KartPullPath.hh>
Tracks the kart's progress along the pull path.
This implementation merges the global and regional tracker into one class.
Definition at line 13 of file KartPullPath.hh.
Public Types | |
| enum class | Type { Global , Regional } |
Public Member Functions | |
| KartPullPathTracker (KartPullPath *handle, Type type) | |
| void | calc () |
| void | setCurrentIdx (s16 idx) |
| void | setPointInfo (System::MapdataPointInfo *info) |
Private Types | |
| enum class | SearchDirection { Current , Next , Previous } |
Private Member Functions | |
| void | calcTrackerGlobal () |
| void | calcTrackerRegional () |
| f32 | getDistance (const EGG::Vector3f &point, const EGG::Vector3f &dir) const |
| Gets the distance from the line formed by the point and direction. | |
| bool | search (SearchDirection searchDirection, s16 &idx, EGG::Vector3f &point, EGG::Vector3f &dir) const |
Private Member Functions inherited from Kart::KartObjectProxy | |
| 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 |
| Status & | status () |
| const Status & | status () const |
| const EGG::Vector3f & | wheelPos (u16 idx) const |
| const EGG::Vector3f & | wheelEdgePos (u16 idx) const |
| void | apply (size_t idx) |
Private Attributes | |
| Type | m_type |
| Replaces inheritance for calc. | |
| s16 | m_currentIdx |
| System::MapdataPointInfo * | m_pointInfo |
| KartPullPath * | m_handle |
Additional Inherited Members | |
Static Private Member Functions inherited from Kart::KartObjectProxy | |
| static std::list< KartObjectProxy * > & | proxyList () |
|
strongprivate |
Definition at line 35 of file KartPullPath.hh.
|
strong |
Definition at line 15 of file KartPullPath.hh.
|
0x8059308C |
Definition at line 10 of file KartPullPath.cc.
| void Kart::KartPullPathTracker::calc | ( | ) |
Definition at line 16 of file KartPullPath.cc.
|
private0x80593138 |
Definition at line 27 of file KartPullPath.cc.
|
private0x80593814 |
Definition at line 40 of file KartPullPath.cc.
|
nodiscardprivate0x80593310 |
Gets the distance from the line formed by the point and direction.
| point | A point on the line. |
| dir | The direction of the line. |
Definition at line 68 of file KartPullPath.cc.
|
private0x8059345C |
Definition at line 76 of file KartPullPath.cc.
|
inline |
Definition at line 25 of file KartPullPath.hh.
|
inline |
Definition at line 29 of file KartPullPath.hh.
|
private |
Definition at line 49 of file KartPullPath.hh.
|
private |
Definition at line 51 of file KartPullPath.hh.
|
private |
Definition at line 50 of file KartPullPath.hh.
|
private |
Replaces inheritance for calc.
Definition at line 48 of file KartPullPath.hh.