Why do bodies sleep in mid air?

Software: Away3D 4.x

empend, Member
Posted: 23 February 2012 07:38 PM   Total Posts: 77

Bodies can just sleep while falling as long as they all touch each other…
This makes them stop falling, and just float.

Is there any way I can fix this?

I attached a small picture displaying what I’m talking about.

 

   

John Brookes, Moderator
Posted: 23 February 2012 10:08 PM   Total Posts: 732   [ # 1 ]

If its only moving a tiny amount it can fall asleep.

//Never sleep - not ideal unless you know it never stops
myRb.activationState = AWPCollisionObject.DISABLE_DEACTIVATION;

//set how easy it falls asleep 0 = never
myRb.angularSleepingThreshold = someNumber
myRb.linearSleepingThreshold = someNumber

//tell it to wake up
myRb.activate()

   

empend, Member
Posted: 23 February 2012 10:29 PM   Total Posts: 77   [ # 2 ]

Thanks!
You’ve been a lot of help lately!
Someone give this guy a medal.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X