Set friction doesn't change anything.
Posted: Thu May 12, 2011 8:35 am
Hi, I work in a project wich use Bullet for 3D physics. When I tried some value for friction in Blender, like 5.0 for support and for the box, I have a great friction.
But When I try to change friction in our engine, I cannot see any difference :
I put the friction coef to 5.0 for both support and object ( I have test with 5000.0 ) like that :
btDefaultMotionState * myMotionState = new btDefaultMotionState(myTransform);
btRigidBody::btRigidBodyConstructionInfo myBoxRigidBodyConstructionInfo( mass, myMotionState, shape, localInertia );
myBoxRigidBodyConstructionInfo.m_friction = 5.0;
_RigidBody = new btRigidBody(myBoxRigidBodyConstructionInfo);
And if I get the friction on the Rigidbody during the process, I have the good value. (5.0)
Is there any other place where I must set something?
Have you any idea for my problem?
Thanks
But When I try to change friction in our engine, I cannot see any difference :
I put the friction coef to 5.0 for both support and object ( I have test with 5000.0 ) like that :
btDefaultMotionState * myMotionState = new btDefaultMotionState(myTransform);
btRigidBody::btRigidBodyConstructionInfo myBoxRigidBodyConstructionInfo( mass, myMotionState, shape, localInertia );
myBoxRigidBodyConstructionInfo.m_friction = 5.0;
_RigidBody = new btRigidBody(myBoxRigidBodyConstructionInfo);
And if I get the friction on the Rigidbody during the process, I have the good value. (5.0)
Is there any other place where I must set something?
Have you any idea for my problem?
Thanks