Use Math_TAU and deg2rad/rad2deg in more places and optimize code
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user