com.jmex.physics.material
Class MaterialContactCallback

java.lang.Object
  extended by com.jmex.physics.material.MaterialContactCallback
All Implemented Interfaces:
ContactCallback

public class MaterialContactCallback
extends java.lang.Object
implements ContactCallback

A helper class used internally to apply info from materials to contacts.

Author:
Irrisor

Method Summary
 boolean adjustContact(PendingContact contact)
          Called when a contact occurs and contact details are needed.
static MaterialContactCallback get()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static MaterialContactCallback get()

adjustContact

public boolean adjustContact(PendingContact contact)
Description copied from interface: ContactCallback
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.

Specified by:
adjustContact in interface ContactCallback
Parameters:
contact - occured contact
Returns:
true if the contact details were set, false if the next callback should be invoked