Movement 2D
This movement system is suitable for movemement in 2D. The logic is implemented inside Move2DSystem, which works with Movement2DComponent. The following properties can be set on the Movement2DComponent:
To use it, add Movement2DAuthoring which adds Movement2DComponent with these properties:
MoveOptionsMaxSpeed- The maximum reachable speedMaxForwardAcceleration- The maximum acceleration in the entity's direction forwardMaxRightAcceleration- The maximum acceleration in the entity's left-right directionFriction- Friction applied when movingMove- Should the entity's velocity be updated
RotationOptionsRotationSpeed- How fast the entity orients itself with it's new velocityRotate- Should the entity's rotation be updated
IsActive- Should the system run at allUpdatePosition- Should the entity's position be updatedDebug- Draws current and desired velocity as arrows