com.jmex.physics.contact
Interface ContactCallback

All Known Implementing Classes:
MaterialContactCallback

public interface ContactCallback

Callback for querying Contact details (e.g. friction).

Author:
Irrisor

Method Summary
 boolean adjustContact(PendingContact contact)
          Called when a contact occurs and contact details are needed.
 

Method Detail

adjustContact

boolean adjustContact(PendingContact contact)
Called when a contact occurs and contact details are needed. Don't execute any logic or scenegraph modifying code inside this method. Use the results of the PhysicsSpace.update(float) method instead.

Parameters:
contact - occured contact
Returns:
true if the contact details were set, false if the next callback should be invoked