You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
adjust min stop to horizontal velocity
This commit is contained in:
@@ -995,7 +995,7 @@ Vector3 KinematicBody::move_and_slide(const Vector3 &p_linear_velocity, const Ve
|
|||||||
Transform gt = get_global_transform();
|
Transform gt = get_global_transform();
|
||||||
gt.origin -= collision.travel;
|
gt.origin -= collision.travel;
|
||||||
set_global_transform(gt);
|
set_global_transform(gt);
|
||||||
return Vector3();
|
return floor_velocity;
|
||||||
}
|
}
|
||||||
} else if (collision.normal.dot(-p_floor_direction) >= Math::cos(p_floor_max_angle)) { //ceiling
|
} else if (collision.normal.dot(-p_floor_direction) >= Math::cos(p_floor_max_angle)) { //ceiling
|
||||||
on_ceiling = true;
|
on_ceiling = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user