How to detect whether an Object came to sleep at a specific position?
- by Nils Riedemann
I'm currently writing a small game with box2dweb and I need some direction for this: I'm throwing a Box and have to hit a specific place and trigger an event when the object that's been thrown isn't moving anymore, "fell asleep" so to say.
What's the proper way / best practice for this?
I'm currently thinking of asking the b2World whether an…