Polish kinematic movement

This commit is contained in:
2024-01-04 17:18:31 +01:00
parent c0b94a9cc3
commit 3c18280a32
7 changed files with 43 additions and 48 deletions

View File

@@ -191,7 +191,12 @@ extern ECS_COMPONENT_DECLARE(Worker);
// Unit can:
// - Attack
extern ECS_TAG_DECLARE(Unit);
typedef struct Unit {
f32 maxSpeed;
f32 acceleration;
f32 deceleration;
} Unit;
extern ECS_COMPONENT_DECLARE(Unit);
extern ECS_TAG_DECLARE(Storage);
extern ECS_TAG_DECLARE(Harvestable);
extern ECS_TAG_DECLARE(Buildable);