com.jmex.physics.contact
Interface ContactHandlingDetails

All Superinterfaces:
com.jme.util.export.Savable
All Known Subinterfaces:
CompleteContactInfo
All Known Implementing Classes:
MutableContactInfo, PendingContact

public interface ContactHandlingDetails
extends com.jme.util.export.Savable

Interface for contact handling detail like friction, bouciness, etc.

Author:
Irrisor

Method Summary
 float getBounce()
           
 float getDampingCoefficient()
          If spring constant and damping coefficient are not NaN they make the contact 'softer' like a spring.
 com.jme.math.Vector3f getFrictionDirection(com.jme.math.Vector3f store)
          Query the direction for the friction - TODO: remove this?
 float getMinimumBounceVelocity()
           
 float getMu()
           
 float getMuOrthogonal()
           
 com.jme.math.Vector3f getSecondaryFrictionDirection(com.jme.math.Vector3f store)
          Query the direction for the secondary friction - TODO: remove this?
 com.jme.math.Vector2f getSlip(com.jme.math.Vector2f store)
           
 float getSpringConstant()
          If spring constant and damping coefficient are not NaN they make the contact 'softer' like a spring.
 com.jme.math.Vector2f getSurfaceMotion(com.jme.math.Vector2f store)
           
 boolean isApplied()
           
 boolean isIgnored()
           
 
Methods inherited from interface com.jme.util.export.Savable
getClassTag, read, write
 

Method Detail

isIgnored

boolean isIgnored()
Returns:
true if the contact should be completely ignored (no collision, no events)
See Also:
isApplied()

isApplied

boolean isApplied()
Returns:
true if this contact should be applied to the physics simulation (default), false to generate events only
See Also:
isIgnored()

getMu

float getMu()
Returns:
friction coefficient
See Also:
MutableContactInfo.setMu(float)

getMuOrthogonal

float getMuOrthogonal()
Returns:
othogonal friction coefficient
See Also:
MutableContactInfo.setMuOrthogonal(float)

getBounce

float getBounce()
Returns:
bounce parameter
See Also:
MutableContactInfo.setBounce(float)

getMinimumBounceVelocity

float getMinimumBounceVelocity()
Returns:
minimum bounce velocity
See Also:
MutableContactInfo.setMinimumBounceVelocity(float)

getSurfaceMotion

com.jme.math.Vector2f getSurfaceMotion(com.jme.math.Vector2f store)
Parameters:
store - where to store the retrieved value (null to create a new vector)
Returns:
surface motion
See Also:
MutableContactInfo.setSurfaceMotion(com.jme.math.Vector2f)

getSlip

com.jme.math.Vector2f getSlip(com.jme.math.Vector2f store)
Parameters:
store - where to store the retrieved value (null to create a new vector)
Returns:
slip
See Also:
MutableContactInfo.setSlip(com.jme.math.Vector2f)

getFrictionDirection

com.jme.math.Vector3f getFrictionDirection(com.jme.math.Vector3f store)
Query the direction for the friction - TODO: remove this?

Parameters:
store - where to put the value, null to create a new Vector
Returns:
store

getSecondaryFrictionDirection

com.jme.math.Vector3f getSecondaryFrictionDirection(com.jme.math.Vector3f store)
Query the direction for the secondary friction - TODO: remove this?

Parameters:
store - where to put the value, null to create a new Vector
Returns:
store

getSpringConstant

float getSpringConstant()
If spring constant and damping coefficient are not NaN they make the contact 'softer' like a spring.

Returns:
the spring constant used for this contact, NaN if not used
See Also:
getDampingCoefficient()

getDampingCoefficient

float getDampingCoefficient()
If spring constant and damping coefficient are not NaN they make the contact 'softer' like a spring.

Returns:
the damping coefficient used for this contact, NaN if not used
See Also:
getSpringConstant()