renamed move_and_slide to physics_move
parent
ead22d114c
commit
812e7eab20
|
@ -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;
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue