update an example that misuses rotation locking functionality

This commit is contained in:
Irlan 2018-04-05 22:09:59 -03:00
parent 85c14fa887
commit f26cd09f3a

View File

@ -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);