Module org.dyn4j

Interface FixtureModificationHandler<T extends Fixture>

  • Type Parameters:
    T - the Fixture type

    public interface FixtureModificationHandler<T extends Fixture>
    Represents a hook into a CollisionBody to be notified of Fixture modification events.
    Since:
    4.0.0
    Version:
    4.0.0
    Author:
    William Bittle
    • Method Detail

      • onFixtureAdded

        void onFixtureAdded​(T fixture)
        Called when a Fixture has been added to a CollisionBody.
        Parameters:
        fixture - the fixture added
      • onFixtureRemoved

        void onFixtureRemoved​(T fixture)
        Called when a Fixture has been removed from a CollisionBody.
        Parameters:
        fixture - the fixture removed
      • onAllFixturesRemoved

        void onAllFixturesRemoved()
        Called when all Fixtures have been removed from a CollisionBody.