diff --git a/feely_pona_game.cpp b/feely_pona_game.cpp index cb1ebca..8fd5e46 100644 --- a/feely_pona_game.cpp +++ b/feely_pona_game.cpp @@ -1093,8 +1093,7 @@ static void FP_Game_MoveEntity(FP_Game *game, FP_GameEntityHandle entity_handle, if (DQN_ABS(entity->velocity.y) < 5.f) entity->velocity.y = 0.f; - Dqn_V2 const delta_pos = (acceleration * 0.5f * t_squared) + (entity->velocity * t); - Dqn_V2 const entity_pos = FP_Game_CalcEntityWorldPos(game, entity->handle); + Dqn_V2 const delta_pos = (acceleration * 0.5f * t_squared) + (entity->velocity * t); FP_GameCanMoveToPositionResult move_to_result = FP_Game_CanEntityMoveToPosition(game, entity->handle, delta_pos); if (move_to_result.yes) { entity->local_pos += delta_pos;