measuring impact

Software: Away3D 4.x

koblongata, Newbie
Posted: 30 September 2013 10:20 PM   Total Posts: 28

Is there a way to measure how much impact is received by a rigid body (e.g. my body) from another rigid object (e.g. a bat)?

   

koblongata, Newbie
Posted: 04 October 2013 01:51 AM   Total Posts: 28   [ # 1 ]

can achieve it with “appliedImpulse”:

function onCollision(e:AWPEvent):void 
{
 trace
(e.manifoldPoint.appliedImpulse);
   

autoaxon, Newbie
Posted: 17 October 2013 02:43 PM   Total Posts: 1   [ # 2 ]

I’m having the same issue as OP…and I see the solution that’s been posted above but I’m not getting that event to be fired, how do you get the onCollision event to be fired with rigid bodies?

   

koblongata, Newbie
Posted: 18 October 2013 11:49 AM   Total Posts: 28   [ # 3 ]

did you turn this on on your AWPDynamicsWorld

world.collisionCallbackOn true
   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X