#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. | |
|
0x80598AC8 |
Definition at line 23 of file KartSub.cc.
|
0x805980D8 |
Definition at line 343 of file KartSub.cc.
|
0x80597A88 |
Definition at line 384 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 171 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 337 of file KartSub.cc.
|
inlinenodiscard |
Definition at line 33 of file KartSub.hh.
|
0x80598744 |
Definition at line 359 of file KartSub.cc.
|
0x805979EC |
Definition at line 353 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.