org.xith3d.physics.collision
Interface CollisionResolveListener


public interface CollisionResolveListener

A CollisionResolveListener is an extended CollisionListener. The difference is, that you also get an instance of SurfaceParameters, which is used by the simulation to resolve the collision.


Method Summary
 boolean onCollisionToResolve(Collision collision, SurfaceParameters defaultSurfaceParameters, SimulationWorld simWorld, boolean consumed)
          This event is fired, if a collision is waiting to be resolved by the Simulation.
 

Method Detail

onCollisionToResolve

boolean onCollisionToResolve(Collision collision,
                             SurfaceParameters defaultSurfaceParameters,
                             SimulationWorld simWorld,
                             boolean consumed)
This event is fired, if a collision is waiting to be resolved by the Simulation.

Parameters:
collision - The Collision event that happened
defaultSurfaceParameters -
simWorld -
consumed - already consumed?
Returns:
true, if consumed