B2BoundaryListener
From Box2D Wiki
| b2BoundaryListener | |
|---|---|
| Box2D/Dynamics | |
| Visibility | Public |
| Manual reference | [1] |
| API reference | [2] |
| Source reference |
|
A boundary listener can be used to listen for when bodies leave the world boundary. You can use this to clean up the body and it's actor if it has one.
As with all listeners, to use this you must subclass it, and attach it to the world with the appropriate function call, SetBoundaryListener. Remember to postpone any modification of the world until after the step has completed.


