Physics APIs, Physics file formats, Maya, Max, XSI, Cinema 4D, Lightwave, Blender, thinkingParticles™ and other simulation tools, exporters and importers
MasterM
Posts: 11 Joined: Sun Oct 05, 2008 4:56 pm
Post
by MasterM » 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 :
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
Post
by MasterM » Sat May 22, 2010 4:54 pm
I also notice when i change the mass it stays thesame :S
MasterM
Posts: 11 Joined: Sun Oct 05, 2008 4:56 pm
Post
by MasterM » Mon May 24, 2010 7:48 pm
Bump!, pleas help me all i want from this forum is support!
jarno
Posts: 57 Joined: Tue Mar 16, 2010 1:42 am
Post
by jarno » Tue May 25, 2010 12:02 am
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
Post
by MasterM » Tue May 25, 2010 2:57 am
Thank you very much jarno