Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 05 Oct 2010
Offline Last Active Jul 25 2013 08:10 AM

#4984747 I think my rigid body classes are incorrect. Error laden behaviour

Posted by on 28 September 2012 - 09:31 AM

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;


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..