@FunctionalInterface
public interface CollisionListener
extends java.util.EventListener
ICollisionEntity.| Modifier and Type | Method and Description |
|---|---|
void |
collisionResolved(CollisionEvent event)
This method gets called after a collision has been resolved with the related
ICollisionEntity. |
void collisionResolved(CollisionEvent event)
ICollisionEntity.
If the entity is considered to be the "active collider" of the collision (i.e. it was moved with the PhysicsEngine),
the event provides all other entities for which a collision had to be resolved during the movement.
If an entity was just in a collision resolving process (i.e. was "touched" by an actively moved collider), the event contains a reference to the collider instance.
event - The collision event.PhysicsEngine.move(IMobileEntity, double, double),
CollisionEvent.getInvolvedEntities()