Generalize easing system (works for all components now)

This commit is contained in:
2023-12-29 20:03:01 +01:00
parent 69232cebf4
commit 3ec7505214
4 changed files with 17 additions and 40 deletions

View File

@@ -7,7 +7,8 @@ i32 harvestEvent(ecs_entity_t entity, HarvestEvent event) {
BZ_ASSERT(ecs_has(ECS, entity, Resource));
ecs_set(ECS, entity, Easing, {
.type = EASE_ROTATION,
.compID = ecs_id(Rotation),
.memberOffset = 0,
.easingFunc = BZ_EASE_OUT_ELASTIC,
.duration = 0.4f,