diff --git a/examples/testbed/tests/linear_motion.h b/examples/testbed/tests/linear_motion.h index 967b0c0..cd70d40 100644 --- a/examples/testbed/tests/linear_motion.h +++ b/examples/testbed/tests/linear_motion.h @@ -27,6 +27,9 @@ public: b3BodyDef bdef; bdef.type = e_dynamicBody; bdef.position.Set(0.0f, 0.0f, 0.0f); + bdef.fixedRotationX = true; + bdef.fixedRotationY = true; + bdef.fixedRotationZ = true; m_body = m_world.CreateBody(bdef); @@ -41,13 +44,6 @@ public: m_body->CreateShape(sdef); - b3MassData data; - m_body->GetMassData(&data); - - data.I.SetZero(); - - m_body->SetMassData(&data); - b3Vec3 g(0.0f, 0.0f, 0.0f); m_world.SetGravity(g);