RigidBody penetrating another RigidBody

Software: Away3D 4.x

Freon, Newbie
Posted: 10 August 2012 02:16 PM   Total Posts: 13

I have a dice (a RigidBody) that gets thrown around (applyForce).
There’s walls all around to keep it contained, but sometimes it gets through anyway.

I’m thinking that it is because the velocity of the dice exceeds the depth of the wall…correct?

Is the best solution (apart from making the walls insanely deep) then to restrict the velocity in my enterFrameHandler (via diceRigidBody.linearVelocity/angularVelocity) ?

Or is there a better way?


Thank you

   

Avatar
loth, Sr. Member
Posted: 12 August 2012 05:45 PM   Total Posts: 236   [ # 1 ]

sorry you wrong wink
your wall have no depht, rather think that this is a plan
you have to adjust mass, friction, and restitution of your rigid body

velocity is to high sure and mass to low

   

Freon, Newbie
Posted: 13 August 2012 09:06 AM   Total Posts: 13   [ # 2 ]

The walls does have depth, friction and restitution. Not mass though, but they shouldn’t have or else the walls will fall down because of the gravity of the physicsWorld.

   

Avatar
loth, Sr. Member
Posted: 13 August 2012 02:59 PM   Total Posts: 236   [ # 3 ]

test with single plane
you sure you add you mesh like that
sceneBody = new AWPRigidBody(shape, mesh, 0);

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X