I have made box like bodies in ragdollDemo but the box never rotates about any axis. I can move the body from one place to another and it is colliding with other object very well.
Any suggestion , on what I am doing wrong ?
btRigidBody is not rotating about any axis.
-
- Posts: 5
- Joined: Fri Aug 14, 2015 11:50 am
-
- Posts: 51
- Joined: Tue Dec 11, 2012 9:59 pm
Re: btRigidBody is not rotating about any axis.
Did you solve this?Janzaib Masood wrote:I have made box like bodies in ragdollDemo but the box never rotates about any axis. I can move the body from one place to another and it is colliding with other object very well.
Any suggestion , on what I am doing wrong ?
It's from not doing something like
{
btScalar mass = 1;
btVector3 fallInertia;
fallShape->calculateLocalInertia( mass, fallInertia ); // fills fallInertia
}
and setting fallInertia in the btRigidBodyConstructionInfo