com.jmex.physics.contact
Class PendingContact

java.lang.Object
  extended by com.jmex.physics.contact.MutableContactInfo
      extended by com.jmex.physics.contact.PendingContact
All Implemented Interfaces:
com.jme.util.export.Savable, CompleteContactInfo, ContactHandlingDetails, ContactInfo

public abstract class PendingContact
extends MutableContactInfo
implements CompleteContactInfo

Instances of this class are used to query contact details with the ContactCallback interface. See all setter methods for details.

Author:
Irrisor
See Also:
ContactCallback

Field Summary
 
Fields inherited from class com.jmex.physics.contact.MutableContactInfo
APPLIED_PROPERTY, BOUNCE_PROPERTY, DAMPING_COEFFICIENT_PROPERTY, FRICTION_DIRECTION_PROPERTY, IGNORED_PROPERTY, MINIMUM_BOUNCE_VELOCITY_PROPERTY, MU_ORTHOGONAL_PROPERTY, MU_PROPERTY, SLIP_PROPERTY, SPRING_CONSTANT_PROPERTY, SURFACE_MOTION_PROPERTY
 
Constructor Summary
protected PendingContact()
           
 
Method Summary
static void computeContactVelocity(ContactInfo pendingContact, com.jme.math.Vector3f store)
           
 com.jme.math.Vector3f getContactVelocity(com.jme.math.Vector3f store)
           
 
Methods inherited from class com.jmex.physics.contact.MutableContactInfo
clear, copy, getBounce, getClassTag, getDampingCoefficient, getFrictionDirection, getMinimumBounceVelocity, getMu, getMuOrthogonal, getSecondaryFrictionDirection, getSlip, getSpringConstant, getSurfaceMotion, isApplied, isIgnored, read, setApplied, setBounce, setDampingCoefficient, setFrictionDirection, setIgnored, setMinimumBounceVelocity, setMu, setMuOrthogonal, setSecondaryFrictionDirection, setSlip, setSpringConstant, setSurfaceMotion, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jmex.physics.contact.ContactInfo
getContactNormal, getContactPosition, getDefaultFrictionDirections, getGeometry1, getGeometry2, getNode1, getNode2, getPenetrationDepth, getTime
 
Methods inherited from interface com.jmex.physics.contact.ContactHandlingDetails
getBounce, getDampingCoefficient, getFrictionDirection, getMinimumBounceVelocity, getMu, getMuOrthogonal, getSecondaryFrictionDirection, getSlip, getSpringConstant, getSurfaceMotion, isApplied, isIgnored
 
Methods inherited from interface com.jme.util.export.Savable
getClassTag, read, write
 

Constructor Detail

PendingContact

protected PendingContact()
Method Detail

getContactVelocity

public com.jme.math.Vector3f getContactVelocity(com.jme.math.Vector3f store)
Specified by:
getContactVelocity in interface ContactInfo
Parameters:
store - where to put the value, null to create a new Vector
Returns:
the velocity with which the two objects hit (in direction 'into' object 1)

computeContactVelocity

public static void computeContactVelocity(ContactInfo pendingContact,
                                          com.jme.math.Vector3f store)