org.xith3d.physics.collision
Interface CollisionListener

All Known Implementing Classes:
CollisionResolver

public interface CollisionListener

A collision listener. It is implemented by a class, which wants to be notified of collisions when calling some checkCollisions() method in CollisionEngine.

See Also:
CollisionEngine.checkCollisions(Collideable, Collideable, boolean), CollisionEngine.checkCollisions(Collideable, Collideable, boolean, CollisionListener), CollisionEngine.checkCollisions(CollideableGroup, boolean, CollisionListener)

Method Summary
 void onCollision(Collision collision)
          A collision has happened !
 

Method Detail

onCollision

void onCollision(Collision collision)
A collision has happened !

Parameters:
collision - Information about this collision, say, contact position and normal, depth, geoms involved.