Files
Aaron Kimbrell 5e40aaf420 Refactor MovingPlatformComponent to support subcomponents for movement and rotation
- Introduced PlatformSubComponent as a base class for platform movement logic.
- Added MoverSubComponent for standard path-following behavior.
- Implemented SimpleMoverSubComponent for auto-generating two-waypoint paths.
- Created RotatorSubComponent to handle angular velocity and rotation along paths.
- Updated MovingPlatformComponent to manage multiple subcomponents and their states.
- Modified serialization and update logic to accommodate new subcomponent architecture.
- Adjusted GameMessages to include additional parameters for platform state synchronization.
- Enhanced SimplePhysicsComponent to prevent double movement when on a moving platform.
- Added new CMakeLists.txt for organizing MovingPlatformComponent files.
2026-04-08 16:32:10 -05:00

20 lines
451 B
C++

#ifndef MOVERSUBCOMPONENT_H
#define MOVERSUBCOMPONENT_H
#include "PlatformSubComponent.h"
/**
* Standard mover - follows a pre-defined path from zone data.
* Corresponds to client LWOPlatformMover (type 4).
*/
class MoverSubComponent final : public PlatformSubComponent {
public:
MoverSubComponent(Entity* parentEntity, const Path* path);
private:
bool m_AllowPosSnap = true;
float m_MaxLerpDistance = 6.0f;
};
#endif // MOVERSUBCOMPONENT_H