Bouncing rigidbody that only bounce higher and higher

Software: Away3D 4.x

Arno, Newbie
Posted: 10 July 2012 08:16 AM   Total Posts: 25

I have a chair in an environment of only static collision objects. But the chair is bouncy from every surface it touch. So it wil bounce higher and higher and i cant find what setting i forgot to set

My basePhysicsWorld has gravity (0,-20,0);

my chair:

chair.friction = 0.9;
chair.collisionFlags = AWPCollisionFlags.CF_CUSTOM_MATERIAL_CALLBACK;
chair.mass = 40; (tried different settings with no result)

For the rest I only create rigidbodies with mass 0 and collisionFlags AWPCollisionFlags.CF_STATIC_OBJECT

   

Yang Li, Administrator
Posted: 11 July 2012 12:49 AM   Total Posts: 80   [ # 1 ]

try to set chair.restitution to less

   

Arno, Newbie
Posted: 11 July 2012 06:00 AM   Total Posts: 25   [ # 2 ]

Thanx for the reply. I already found the problem I was adding the rigidBody twice to the AWPDynamicsWorld so every force was also added twice to a body.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X