Jump to content

  • Log In with Google      Sign In   
  • Create Account


m_a_s_gp

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 m_a_s_gp 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;

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


PARTNERS