Generalize easing system (works for all components now)
This commit is contained in:
@@ -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,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user