summaryrefslogtreecommitdiff
path: root/servers/physics/joints/generic_6dof_joint_sw.cpp
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2019-01-16 10:42:53 -0500
committerAaron Franke <arnfranke@yahoo.com>2019-04-25 13:20:29 -0400
commitb659e1eb2b732ebc836614735438ca0bcdc8a32d (patch)
treefdc9e58e4e573c08eb9004650476e43bc66a0e43 /servers/physics/joints/generic_6dof_joint_sw.cpp
parentc577ec6ae46f8c6d848cae46c0e447e6607b3f33 (diff)
Use approximate equallity methods in many places
Diffstat (limited to 'servers/physics/joints/generic_6dof_joint_sw.cpp')
-rw-r--r--servers/physics/joints/generic_6dof_joint_sw.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/physics/joints/generic_6dof_joint_sw.cpp b/servers/physics/joints/generic_6dof_joint_sw.cpp
index 756348f448..813d9b7704 100644
--- a/servers/physics/joints/generic_6dof_joint_sw.cpp
+++ b/servers/physics/joints/generic_6dof_joint_sw.cpp
@@ -107,7 +107,7 @@ real_t G6DOFRotationalLimitMotorSW::solveAngularLimits(
// correction velocity
real_t motor_relvel = m_limitSoftness * (target_velocity - m_damping * rel_vel);
- if (motor_relvel < CMP_EPSILON && motor_relvel > -CMP_EPSILON) {
+ if (Math::is_zero_approx(motor_relvel)) {
return 0.0f; //no need for applying force
}