diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-02 08:43:16 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-02 08:43:16 +0200 |
commit | 42398b5f1797238bb9fa9cf332680d5005aa1716 (patch) | |
tree | 04856ee92b23c5ea34cc39d708881796ca4cad8c /servers/physics_3d/godot_collision_solver_3d_sat.cpp | |
parent | c6fd311da0d0052bb11237662ec528f9fab1b7dd (diff) | |
parent | 15d057c5211270605d4344165930bba9c5d7e2aa (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.cpp | 2 |
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); } |