Is there a way to do the following?
-
Check if a display object is part of a physics system? I have some code where I am checking the velocity of objects, but obviously getLinearVelocity() will throw errors if the object body hasn’t been added to the physics yet.
-
Check if a body is sleeping? I know about body.isSleepingAllowed(), but shouldn’t there also be something like body.isSleeping()? I’d like to remove objects if they come to rest. What is the best way to do that? [import]uid: 52127 topic_id: 9855 reply_id: 309855[/import]
