Split follow path system with follow target position

This commit is contained in:
2023-12-07 11:20:04 +01:00
parent 7bada9f4e8
commit ddb562a62e
5 changed files with 40 additions and 14 deletions

View File

@@ -47,11 +47,11 @@ extern ECS_COMPONENT_DECLARE(Owner);
typedef BzSpatialGridID SpatialGridID;
extern ECS_COMPONENT_DECLARE(SpatialGridID);
typedef Vector2 Position, Size, Velocity, Offset;
typedef Vector2 Position, Size, Velocity, TargetPosition;
extern ECS_COMPONENT_DECLARE(Position);
extern ECS_COMPONENT_DECLARE(Size);
extern ECS_COMPONENT_DECLARE(Velocity);
extern ECS_COMPONENT_DECLARE(Offset);
extern ECS_COMPONENT_DECLARE(TargetPosition);
typedef f32 Rotation, AngularVelocity;
extern ECS_COMPONENT_DECLARE(Rotation);
extern ECS_COMPONENT_DECLARE(AngularVelocity);