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

@@ -36,7 +36,11 @@ ecs_entity_t entityCreateWorker(const Position position, Game *game) {
});
ecs_set(ECS, e, UnitAction, { NULL, NULL });
ecs_add_id(ECS, e, Selectable);
ecs_add_id(ECS, e, Unit);
ecs_set(ECS, e, Unit, {
.acceleration = 80.0f,
.maxSpeed = 15.0f,
.deceleration = 0.1f
});
ecs_set(ECS, e, Worker, {
.collectSpeed = 0.8f,
.depositSpeed = 0.2f,