#include <KartSub.hh>
Hosts a few classes and the high level per-frame calc functions.
Definition at line 11 of file KartSub.hh.
Public Member Functions | |
| void | createSubsystems (bool isBike) |
| void | copyPointers (KartAccessor &pointers) |
| Called during static construction of KartObject to synchronize the pointers. | |
| void | init () |
| void | initAABB (KartAccessor &accessor, KartObject *object) |
| void | initPhysicsValues () |
| void | resetPhysics () |
| void | calcPass0 () |
| The first phase of physics computations on each frame. | |
| void | calcPass1 () |
| The second phase of physics computations on each frame.Handles the second-half of physics calculations. This mainly includes collision detection, as well as suspension physics. | |
| void | resizeAABB (f32 radiusScale) |
| void | addFloor (const CollisionData &, bool) |
| void | updateSuspOvertravel (const EGG::Vector3f &suspOvertravel) |
| void | tryEndHWG () |
| void | calcMovingObj () |
Getters | |
| f32 | someScale () |
Private Attributes | |
| KartMove * | m_move |
| KartAction * | m_action |
| KartCollide * | m_collide |
| KartState * | m_state |
| EGG::Vector3f | m_maxSuspOvertravel |
| EGG::Vector3f | m_minSuspOvertravel |
| u16 | m_floorCollisionCount |
| u16 | m_movingObjCollisionCount |
| EGG::Vector3f | m_objVel |
| s16 | m_sideCollisionTimer |
| Number of frames to apply movement from wall collision. | |
| f32 | m_colPerpendicularity |
| Dot product between floor and colliding wall normals. | |
| f32 | m_someScale |
Static Private Attributes | |
| static constexpr f32 | DT = 1.0f |
| Delta time. | |
Additional Inherited Members | |
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) |
Static Private Member Functions inherited from Kart::KartObjectProxy | |
| static std::list< KartObjectProxy * > & | proxyList () |
|
0x80598AC8 |
Definition at line 23 of file KartSub.cc.
|
0x805980D8 |
Definition at line 347 of file KartSub.cc.
|
0x80597A88 |
Definition at line 390 of file KartSub.cc.
|
0x80596480 |
The first phase of physics computations on each frame.
Handles the first-half of physics calculations. This includes input processing, subsequent position/speed updates, as well as responding to last frame's collisions.
Definition at line 100 of file KartSub.cc.
|
0x80596CFC |
The second phase of physics computations on each frame.Handles the second-half of physics calculations. This mainly includes collision detection, as well as suspension physics.
Definition at line 173 of file KartSub.cc.
|
0x80596454 |
Called during static construction of KartObject to synchronize the pointers.
Definition at line 41 of file KartSub.cc.
|
0x80595D48 |
Definition at line 31 of file KartSub.cc.
|
0x80595F78 |
Definition at line 49 of file KartSub.cc.
|
0x8059828C |
Definition at line 59 of file KartSub.cc.
|
0x80597934 |
Definition at line 68 of file KartSub.cc.
|
0x8059617C |
Definition at line 74 of file KartSub.cc.
|
0x80598338 |
Definition at line 341 of file KartSub.cc.
|
inlinenodiscard |
Definition at line 33 of file KartSub.hh.
|
0x80598744 |
Definition at line 363 of file KartSub.cc.
|
0x805979EC |
Definition at line 357 of file KartSub.cc.
|
staticconstexprprivate |
Delta time.
Definition at line 52 of file KartSub.hh.
|
private |
Definition at line 40 of file KartSub.hh.
|
private |
Definition at line 41 of file KartSub.hh.
|
private |
Dot product between floor and colliding wall normals.
Definition at line 49 of file KartSub.hh.
|
private |
Definition at line 45 of file KartSub.hh.
|
private |
Definition at line 43 of file KartSub.hh.
|
private |
Definition at line 44 of file KartSub.hh.
|
private |
Definition at line 39 of file KartSub.hh.
|
private |
Definition at line 46 of file KartSub.hh.
|
private |
Definition at line 47 of file KartSub.hh.
|
private |
Number of frames to apply movement from wall collision.
Definition at line 48 of file KartSub.hh.
|
private |
Definition at line 50 of file KartSub.hh.
|
private |
Definition at line 42 of file KartSub.hh.