motion state and others
Posted: Sun Apr 01, 2018 11:25 am
Hi All,
I've run throught the documents but cannot understand few things clearly
- gravity - what is the proper way of setting correct value of it?
- motionState - I am using btDefaultMotionState but still have lack of understanding what is the arguments whould be passed - like where we take all numbers for tranformation, as in below example
- the rigid body - same goes here as for motion state, if you could give me a hint on understanding all of those numbers passed
- for the convex hull looks like we adding points to it that represents our mesh. Am I correct
Please help someone with that as I am really need to understand it in the right way.
I've run throught the documents but cannot understand few things clearly
- gravity - what is the proper way of setting correct value of it?
- motionState - I am using btDefaultMotionState but still have lack of understanding what is the arguments whould be passed - like where we take all numbers for tranformation, as in below example
Code: Select all
btDefaultMotionState* motionstate = new btDefaultMotionState(btTransform(
btQuaternion(0.0f, 0.0f, 0.0f, 1),
btVector3(1.5f, 0.0f, -7.0f)
));
Code: Select all
btRigidBody::btRigidBodyConstructionInfo rigidBodyCI(
0, // mass, in kg. 0 -> Static object, will never move.
motionstate,
collisionShape, // collision shape of body
btVector3(0, 0, 0) // local inertia
);
Please help someone with that as I am really need to understand it in the right way.