adjust min stop to horizontal velocity
This commit is contained in:
parent
0416ca2fd2
commit
9e6f9742f4
1 changed files with 1 additions and 1 deletions
|
@ -995,7 +995,7 @@ Vector3 KinematicBody::move_and_slide(const Vector3 &p_linear_velocity, const Ve
|
|||
Transform gt = get_global_transform();
|
||||
gt.origin -= collision.travel;
|
||||
set_global_transform(gt);
|
||||
return Vector3();
|
||||
return floor_velocity;
|
||||
}
|
||||
} else if (collision.normal.dot(-p_floor_direction) >= Math::cos(p_floor_max_angle)) { //ceiling
|
||||
on_ceiling = true;
|
||||
|
|
Loading…
Reference in a new issue