Increase the bouncing of a object

Physics APIs, Physics file formats, Maya, Max, XSI, Cinema 4D, Lightwave, Blender, thinkingParticles™ and other simulation tools, exporters and importers
Post Reply
MasterM
Posts: 11
Joined: Sun Oct 05, 2008 4:56 pm

Increase the bouncing of a object

Post 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);
MasterM
Posts: 11
Joined: Sun Oct 05, 2008 4:56 pm

Re: Increase the bouncing of a object

Post by MasterM »

I also notice when i change the mass it stays thesame :S
MasterM
Posts: 11
Joined: Sun Oct 05, 2008 4:56 pm

Re: Increase the bouncing of a object

Post by MasterM »

Bump!, pleas help me all i want from this forum is support!
User avatar
jarno
Posts: 57
Joined: Tue Mar 16, 2010 1:42 am

Re: Increase the bouncing of a object

Post 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.
MasterM
Posts: 11
Joined: Sun Oct 05, 2008 4:56 pm

Re: Increase the bouncing of a object

Post by MasterM »

Thank you very much jarno
Post Reply