B2DestructionListener
From Box2D Wiki
| b2DestructionListener | |
|---|---|
| Box2D/Dynamics | |
| Visibility | Public |
| Manual reference | [1] |
| API reference | [2] |
| Source reference |
|
A destruction listener can be used to listen for when joints and shapes get implicitly destroyed from a call to b2World::DestroyBody. It only has two methods: SayGoodbye(b2Joint*) and SayGoodbye(b2Shape*).
As with all listeners, to use this you must subclass it, and attach it to the world with the appropriate function call, SetDestructionListener.


