Definition at line 155 of file RailInterpolator.hh.
Public Member Functions | |
| RailSmoothInterpolator (f32 speed, u32 idx) | |
| void | init (f32 t, u32 idx) override |
| Status | calc () override |
| void | setCurrVel (f32 speed) override |
| f32 | getCurrVel () override |
| void | evalCubicBezierOnPath (f32 t, EGG::Vector3f &currDir, EGG::Vector3f &curTangentDir) override |
| void | getPathLocation (f32 t, s16 &idx, f32 &len) override |
| f32 | getCurrSegmentLength () const override |
Public Member Functions inherited from Field::RailInterpolator | |
| RailInterpolator (f32 speed, u32 idx) | |
| void | setPerPointVelocities (bool isSet) |
| void | setT (f32 t) |
| const EGG::Vector3f & | floorNrm (size_t idx) const |
| f32 | railLength () const |
| const System::MapdataPointInfo::Point & | curPoint () const |
| const System::MapdataPointInfo::Point & | nextPoint () const |
| s16 | railIdx () const |
| u16 | pointCount () const |
| f32 | speed () const |
| const EGG::Vector3f & | curPos () const |
| const EGG::Vector3f & | curTangentDir () const |
| f32 | currVel () const |
| f32 | segmentT () const |
| bool | isMovementDirectionForward () const |
| s16 | curPointIdx () const |
| s16 | nextPointIdx () const |
Private Member Functions | |
| void | calcCubicBezier (f32 t, u32 currIdx, u32 nextIdx, EGG::Vector3f &pos, EGG::Vector3f &dir) const |
| EGG::Vector3f | calcCubicBezierPos (f32 t, const RailSplineTransition &trans) const |
| EGG::Vector3f | calcCubicBezierTangentDir (f32 t, const RailSplineTransition &trans) const |
| f32 | calcT (f32 t) const |
| void | calcNextSegment () |
Private Attributes | |
| std::span< RailSplineTransition > | m_transitions |
| u32 | m_estimatorSampleCount |
| f32 | m_estimatorStep |
| std::span< f32 > | m_pathPercentages |
| EGG::Vector3f | m_prevPos |
| f32 | m_velocity |
Additional Inherited Members | |
Public Types inherited from Field::RailInterpolator | |
| enum class | Status { InProgress = 0 , SegmentEnd = 1 , ChangingDirection = 2 } |
Protected Member Functions inherited from Field::RailInterpolator | |
| void | updateVel () |
| void | calcVelocities () |
| bool | shouldChangeDirection () const |
| void | calcDirectionChange () |
| void | calcNextIndices () |
Protected Attributes inherited from Field::RailInterpolator | |
| s16 | m_railIdx |
| u16 | m_pointCount |
| std::span< System::MapdataPointInfo::Point > | m_points |
| bool | m_isOscillating |
| f32 | m_speed |
| bool | m_usePerPointVelocities |
| EGG::Vector3f | m_curPos |
| EGG::Vector3f | m_curTangentDir |
| f32 | m_currVel |
| f32 | m_prevPointVel |
| f32 | m_nextPointVel |
| f32 | m_currSegmentVel |
| f32 | m_segmentT |
| bool | m_movementDirectionForward |
| s16 | m_currPointIdx |
| s16 | m_nextPointIdx |
| bool | m_4a |
|
0x806EE830 |
Definition at line 244 of file RailInterpolator.cc.
|
overridevirtual0x806EEBEC |
Implements Field::RailInterpolator.
Definition at line 286 of file RailInterpolator.cc.
|
private0x806EF224 |
Definition at line 393 of file RailInterpolator.cc.
|
nodiscardprivate0x806EF350 |
Definition at line 402 of file RailInterpolator.cc.
|
nodiscardprivate0x806EF454 |
Definition at line 415 of file RailInterpolator.cc.
|
private0x806EF664 |
Definition at line 460 of file RailInterpolator.cc.
|
nodiscardprivate0x806EF0F8 |
Definition at line 432 of file RailInterpolator.cc.
|
overridevirtual0x806EEEBC |
Implements Field::RailInterpolator.
Definition at line 342 of file RailInterpolator.cc.
|
inlinenodiscardoverridevirtual0x806EF09C |
Implements Field::RailInterpolator.
Definition at line 174 of file RailInterpolator.hh.
|
inlinenodiscardoverridevirtual0x806EF93C |
Implements Field::RailInterpolator.
Definition at line 165 of file RailInterpolator.hh.
|
overridevirtual0x806EEFA0 |
Implements Field::RailInterpolator.
Definition at line 360 of file RailInterpolator.cc.
|
overridevirtual0x806EE924 |
Implements Field::RailInterpolator.
Definition at line 258 of file RailInterpolator.cc.
|
overridevirtual0x806EEB94 |
Implements Field::RailInterpolator.
Definition at line 331 of file RailInterpolator.cc.
|
private |
Definition at line 189 of file RailInterpolator.hh.
|
private |
Definition at line 190 of file RailInterpolator.hh.
|
private |
Definition at line 191 of file RailInterpolator.hh.
|
private |
Definition at line 192 of file RailInterpolator.hh.
|
private |
Definition at line 188 of file RailInterpolator.hh.
|
private |
Definition at line 193 of file RailInterpolator.hh.