18 ChangingDirection = 2,
113 std::span<const System::MapdataPointInfo::Point>
m_points;
This header houses common data types such as our integral types and enums.
virtual void init(f32 t, u32 idx)=0
virtual void setCurrVel(f32 speed)=0
const System::MapdataPointInfo::Point & curPoint() const
std::span< const System::MapdataPointInfo::Point > m_points
EGG::Vector3f m_curTangentDir
const EGG::Vector3f & curPos() const
void setPerPointVelocities(bool isSet)
const System::MapdataPointInfo::Point & nextPoint() const
virtual f32 getCurrSegmentLength() const =0
const EGG::Vector3f & floorNrm(size_t idx) const
virtual f32 getCurrVel()=0
bool m_usePerPointVelocities
void calcDirectionChange()
virtual void evalCubicBezierOnPath(f32 t, EGG::Vector3f &currDir, EGG::Vector3f &curTangentDir)=0
bool shouldChangeDirection() const
virtual void getPathLocation(f32 t, s16 &idx, f32 &len)=0
bool m_movementDirectionForward
bool isMovementDirectionForward() const
virtual ~RailInterpolator()
const EGG::Vector3f & curTangentDir() const
RailInterpolator(f32 speed, u32 idx)
std::span< const RailLineTransition > m_transitions
EGG::Vector3f lerp(f32 t, u32 currIdx, u32 nextIdx) const
void getPathLocation(f32 t, s16 &idx, f32 &len) override
~RailLinearInterpolator() override
EGG::Vector3f m_currentDirection
void init(f32 t, u32 idx) override
f32 getCurrVel() override
void evalCubicBezierOnPath(f32 t, EGG::Vector3f &currDir, EGG::Vector3f &curTangentDir) override
f32 m_segmentLength
The length of m_currentDirection.
f32 getCurrSegmentLength() const override
void setCurrVel(f32 speed) override
RailLinearInterpolator(f32 speed, u32 idx)
EGG::Vector3f calcCubicBezierTangentDir(f32 t, const RailSplineTransition &trans) const
void getPathLocation(f32 t, s16 &idx, f32 &len) override
void init(f32 t, u32 idx) override
bool m_velocityPending
Whether m_velocity needs to be recomputed from m_curPos and m_prevPos.
f32 getCurrVel() override
void evalCubicBezierOnPath(f32 t, EGG::Vector3f &currDir, EGG::Vector3f &curTangentDir) override
std::span< const RailSplineTransition > m_transitions
void calcCubicBezier(f32 t, u32 currIdx, u32 nextIdx, EGG::Vector3f &pos, EGG::Vector3f &dir) const
EGG::Vector3f calcCubicBezierPos(f32 t, const RailSplineTransition &trans) const
RailSmoothInterpolator(f32 speed, u32 idx)
f32 getCurrSegmentLength() const override
void setCurrVel(f32 speed) override
~RailSmoothInterpolator() override
std::span< const f32 > m_pathPercentages