Page 1 of 1

Increase the bouncing of a object

Posted: Sat May 22, 2010 2:17 am
by MasterM
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 :

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);

Re: Increase the bouncing of a object

Posted: Sat May 22, 2010 4:54 pm
by MasterM
I also notice when i change the mass it stays thesame :S

Re: Increase the bouncing of a object

Posted: Mon May 24, 2010 7:48 pm
by MasterM
Bump!, pleas help me all i want from this forum is support!

Re: Increase the bouncing of a object

Posted: Tue May 25, 2010 12:02 am
by jarno
The restitution of both the colliding objects determines how much bounce there is. I think it is the product of the restitution values of the objects involved in the collision that is the determining factor.

So if you have a ball falling into a floor, both the ball and the floor should have a non-zero restitution.

Re: Increase the bouncing of a object

Posted: Tue May 25, 2010 2:57 am
by MasterM
Thank you very much jarno