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);