Module org.dyn4j
Package org.dyn4j.world.listener
Package contains the listeners used in the
CollisionWorld
and
PhysicsWorld
classes to notify a user of events occurring in
the engine.
Generally, actions that modify the world that this event is generated from should be avoided. Best practice would be to queue up operations like removal of bodies, adding fixtures, etc. until the simulation step has completed.
- Since:
- 4.0.0
- Version:
- 4.0.0
- Author:
- William Bittle
-
Interface Summary Interface Description BoundsListener<T extends CollisionBody<E>,E extends Fixture> Represents an object that is notified when aCollisionBody
goes out ofBounds
.CollisionListener<T extends CollisionBody<E>,E extends Fixture> Interface to listen for collision events.ContactListener<T extends PhysicsBody> Represents an object that is notified of contact events.DestructionListener<T extends PhysicsBody> Interface to listen for implicit destruction events.StepListener<T extends PhysicsBody> Listener notified before and after a simulation step by thePhysicsWorld
.TimeOfImpactListener<T extends PhysicsBody> Interface to listen for time of impact events.WorldEventListener Marker interface for world listeners. -
Class Summary Class Description BoundsListenerAdapter<T extends CollisionBody<E>,E extends Fixture> Convenience class for implementing theBoundsListener
interface.CollisionListenerAdapter<T extends CollisionBody<E>,E extends Fixture> Convenience class for implementing theCollisionListener
interface.ContactListenerAdapter<T extends PhysicsBody> Convenience class for implementing theContactListener
interface.DestructionListenerAdapter<T extends PhysicsBody> Convenience class for implementing theDestructionListener
interface.StepListenerAdapter<T extends PhysicsBody> Convenience class for implementing theStepListener
interface.TimeOfImpactListenerAdapter<T extends PhysicsBody> Convenience class for implementing theTimeOfImpactListener
interface.