diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-02-01 20:55:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-01 20:55:25 +0100 |
commit | d2e121650476af0a91bc24ea38253428e97f9695 (patch) | |
tree | 22b120a76f0430faa9e4a9383f7c0c83557616b6 /servers/physics_3d/joints | |
parent | 264504d76d2c1ea374d5508e6a2634e2b5002d84 (diff) | |
parent | 1d5042c9e265219dec8da7311879f12ef3ef698b (diff) |
Merge pull request #37547 from aaronfranke/tau
Use Math_TAU and deg2rad/etc in more places and optimize code
Diffstat (limited to 'servers/physics_3d/joints')
-rw-r--r-- | servers/physics_3d/joints/cone_twist_joint_3d_sw.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/servers/physics_3d/joints/cone_twist_joint_3d_sw.cpp b/servers/physics_3d/joints/cone_twist_joint_3d_sw.cpp index 7b10257157..9c4493f4a2 100644 --- a/servers/physics_3d/joints/cone_twist_joint_3d_sw.cpp +++ b/servers/physics_3d/joints/cone_twist_joint_3d_sw.cpp @@ -92,9 +92,9 @@ ConeTwistJoint3DSW::ConeTwistJoint3DSW(Body3DSW *rbA, Body3DSW *rbB, const Trans m_rbAFrame = rbAFrame; m_rbBFrame = rbBFrame; - m_swingSpan1 = Math_PI / 4.0; - m_swingSpan2 = Math_PI / 4.0; - m_twistSpan = Math_PI * 2; + m_swingSpan1 = Math_TAU / 8.0; + m_swingSpan2 = Math_TAU / 8.0; + m_twistSpan = Math_TAU; m_biasFactor = 0.3f; m_relaxationFactor = 1.0f; |