Increase the bouncing of a object
Posted: Sat May 22, 2010 2:17 am
Hi all,
I have increased the restitution of my rigidbody-construction-info to 0.9 but i don't see much of a result, the bouncing seems to be thesame.
my rigidbody-info code looks likes this :
I have increased the restitution of my rigidbody-construction-info to 0.9 but i don't see much of a result, the bouncing seems to be thesame.
my rigidbody-info code looks likes this :
Code: Select all
btScalar mass = 1.0;
btVector3 inertia(0.0, 0.0, 0.0);
fallShape->calculateLocalInertia(mass, inertia);
btRigidBody::btRigidBodyConstructionInfo fallRigidBodyCI(mass, fallMotionState, fallShape, inertia);
fallRigidBodyCI.m_restitution=9;
btRigidBody* fallRigidBody = new btRigidBody(fallRigidBodyCI);