From 812e7eab20e687e0cf1264d05bb94297aec90ed2 Mon Sep 17 00:00:00 2001 From: Sara Date: Sun, 25 Jun 2023 18:13:28 +0200 Subject: [PATCH] renamed move_and_slide to physics_move --- src/corelib/physics.c | 2 +- src/corelib/physics.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/corelib/physics.c b/src/corelib/physics.c index 46fa8d0..817d802 100644 --- a/src/corelib/physics.c +++ b/src/corelib/physics.c @@ -206,7 +206,7 @@ void _solve_move(object_t* this) { } } -void move_and_slide(object_t* this, float delta_time) { +void physics_move(object_t* this, float delta_time) { const float max_step_size = this->physics.max_interpolate_step_size; // calculate step delta float dx = this->physics.velocity_x * delta_time, dy = this->physics.velocity_y * delta_time; diff --git a/src/corelib/physics.h b/src/corelib/physics.h index 6ea5630..5a00e40 100644 --- a/src/corelib/physics.h +++ b/src/corelib/physics.h @@ -39,7 +39,7 @@ extern void object_broadcast_evt_collision(object_t* this, object_t* other); extern void physics_update(); -void move_and_slide(object_t* this, float delta_time); +extern void physics_move(object_t* this, float delta_time); extern short can_collide(const object_t* this);