Module org.dyn4j

Interface DestructionListener<T extends PhysicsBody>

  • Type Parameters:
    T - the PhysicsBody type
    All Superinterfaces:
    WorldEventListener
    All Known Implementing Classes:
    DestructionListenerAdapter

    public interface DestructionListener<T extends PhysicsBody>
    extends WorldEventListener
    Interface to listen for implicit destruction events.

    These events can happen when, for example, a PhysicsBody is removed from a PhysicsWorld where it was attached to a Joint. The joint must be removed as well. These methods will be called when any such implicit destruction events happen.

    Since:
    1.0.0
    Version:
    4.0.0
    Author:
    William Bittle