I don't know if this has anything to do with your problem, but you should change this:
if(m_force[direction] < threshold) m_force[direction] = 0.0f;
if(m_torque[direction] < threshold) m_torque[direction] = 0.0f;
to:
if(abs(m_force[direction]) < threshold) m_force[direction] = 0.0f;
if(abs(m_torque[direction]) < threshold) m_torque[direction] = 0.0f;
because the components of the force can take minus values..
m_a_s_gp
Member Since 05 Oct 2010Offline Last Active Sep 28 2012 12:10 PM

Find content
Not Telling