The demo has a ground plane and a sphere of a certain radius and mass that falls to the ground.
In the example, it has radius of 1.0 and mass of 1.0.
Gravity is set to (0, -10, 0)
Code: Select all
btScalar mass(1.0f);
btVector3 localInertia(0,0,0);
colShape->calculateLocalInertia(mass,localInertia);
btDefaultMotionState* myMotionState = new btDefaultMotionState(startTransform);
btRigidBody::btRigidBodyConstructionInfo rbInfo(mass,myMotionState,colShape,localInertia);
btRigidBody * body = new btRigidBody(rbInfo);
dynamicsWorld->addRigidBody(body);
Although if I modify the radius, I can see the speed changing.
Is this normal? Am I missing something?