renamed move_and_slide to physics_move

pull/11/head
Sara 2023-06-25 18:13:28 +02:00
parent ead22d114c
commit 812e7eab20
2 changed files with 2 additions and 2 deletions

View File

@ -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; const float max_step_size = this->physics.max_interpolate_step_size;
// calculate step delta // calculate step delta
float dx = this->physics.velocity_x * delta_time, dy = this->physics.velocity_y * delta_time; float dx = this->physics.velocity_x * delta_time, dy = this->physics.velocity_y * delta_time;

View File

@ -39,7 +39,7 @@ extern void object_broadcast_evt_collision(object_t* this, object_t* other);
extern void physics_update(); 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); extern short can_collide(const object_t* this);