Allow multiple collision direction at the same time
This commit is contained in:
parent
a71169c0e0
commit
aaf09f864a
1 changed files with 0 additions and 3 deletions
|
@ -1249,9 +1249,6 @@ Vector2 KinematicBody2D::move_and_slide_with_snap(const Vector2 &p_linear_veloci
|
||||||
}
|
}
|
||||||
|
|
||||||
void KinematicBody2D::_set_collision_direction(const Collision &p_collision, const Vector2 &p_up_direction, float p_floor_max_angle) {
|
void KinematicBody2D::_set_collision_direction(const Collision &p_collision, const Vector2 &p_up_direction, float p_floor_max_angle) {
|
||||||
on_floor = false;
|
|
||||||
on_ceiling = false;
|
|
||||||
on_wall = false;
|
|
||||||
if (p_up_direction == Vector2()) {
|
if (p_up_direction == Vector2()) {
|
||||||
//all is a wall
|
//all is a wall
|
||||||
on_wall = true;
|
on_wall = true;
|
||||||
|
|
Loading…
Reference in a new issue