summaryrefslogtreecommitdiff
path: root/servers/physics_3d/godot_collision_solver_3d_sat.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-09-02 08:43:16 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-09-02 08:43:16 +0200
commit42398b5f1797238bb9fa9cf332680d5005aa1716 (patch)
tree04856ee92b23c5ea34cc39d708881796ca4cad8c /servers/physics_3d/godot_collision_solver_3d_sat.cpp
parentc6fd311da0d0052bb11237662ec528f9fab1b7dd (diff)
parent15d057c5211270605d4344165930bba9c5d7e2aa (diff)
Merge pull request #65223 from jtnicholl/is_zero_approx
Diffstat (limited to 'servers/physics_3d/godot_collision_solver_3d_sat.cpp')
-rw-r--r--servers/physics_3d/godot_collision_solver_3d_sat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/physics_3d/godot_collision_solver_3d_sat.cpp b/servers/physics_3d/godot_collision_solver_3d_sat.cpp
index 20e9300778..56e644b57b 100644
--- a/servers/physics_3d/godot_collision_solver_3d_sat.cpp
+++ b/servers/physics_3d/godot_collision_solver_3d_sat.cpp
@@ -629,7 +629,7 @@ public:
_FORCE_INLINE_ bool test_axis(const Vector3 &p_axis) {
Vector3 axis = p_axis;
- if (axis.is_equal_approx(Vector3())) {
+ if (axis.is_zero_approx()) {
// strange case, try an upwards separator
axis = Vector3(0.0, 1.0, 0.0);
}