From 15d057c5211270605d4344165930bba9c5d7e2aa Mon Sep 17 00:00:00 2001 From: Jonathan Nicholl Date: Thu, 1 Sep 2022 20:32:33 -0400 Subject: Add `is_zero_approx` methods to `Vector2`, `3`, and `4` --- servers/physics_3d/godot_collision_solver_3d_sat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'servers/physics_3d/godot_collision_solver_3d_sat.cpp') 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); } -- cgit v1.2.3