Interface Contact
- All Superinterfaces:
X3DNode
- All Known Implementing Classes:
SAIContact,SAIContact
Defines the requirements of an X3D Contact node
- Version:
- $Revision: 1.2 $
- Author:
- Rex Melton
-
Method Summary
Modifier and TypeMethodDescriptionvoidgetAppliedParameters(String[] val) Return the appliedParameters value in the argument String[]getBody1()Return the body1 X3DNode value.getBody2()Return the body2 X3DNode value.floatReturn the bounce float value.voidgetContactNormal(float[] val) Return the contactNormal value in the argument float[]floatgetDepth()Return the depth float value.voidgetFrictionCoefficients(float[] val) Return the frictionCoefficients value in the argument float[]voidgetFrictionDirection(float[] val) Return the frictionDirection value in the argument float[]Return the geometry1 X3DNode value.Return the geometry2 X3DNode value.floatReturn the minBounceSpeed float value.intReturn the number of MFString items in the appliedParameters field.voidgetPosition(float[] val) Return the position value in the argument float[]voidgetSlipCoefficients(float[] val) Return the slipCoefficients value in the argument float[]floatReturn the softnessConstantForceMix float value.floatReturn the softnessErrorCorrection float value.voidgetSurfaceSpeed(float[] val) Return the surfaceSpeed value in the argument float[]voidsetAppliedParameters(String[] val) Set the appliedParameters field.voidSet the body1 field.voidSet the body2 field.voidsetBounce(float val) Set the bounce field.voidsetContactNormal(float[] val) Set the contactNormal field.voidsetDepth(float val) Set the depth field.voidsetFrictionCoefficients(float[] val) Set the frictionCoefficients field.voidsetFrictionDirection(float[] val) Set the frictionDirection field.voidSet the geometry1 field.voidSet the geometry1 field.voidSet the geometry2 field.voidSet the geometry2 field.voidsetMinBounceSpeed(float val) Set the minBounceSpeed field.voidsetPosition(float[] val) Set the position field.voidsetSlipCoefficients(float[] val) Set the slipCoefficients field.voidsetSoftnessConstantForceMix(float val) Set the softnessConstantForceMix field.voidsetSoftnessErrorCorrection(float val) Set the softnessErrorCorrection field.voidsetSurfaceSpeed(float[] val) Set the surfaceSpeed field.Methods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadata
-
Method Details
-
getNumAppliedParameters
int getNumAppliedParameters()Return the number of MFString items in the appliedParameters field.- Returns:
- the number of MFString items in the appliedParameters field.
-
getAppliedParameters
Return the appliedParameters value in the argument String[]- Parameters:
val- The String[] to initialize.
-
setAppliedParameters
Set the appliedParameters field.- Parameters:
val- The String[] to set.
-
getBody1
-
setBody1
-
getBody2
-
setBody2
-
getBounce
float getBounce()Return the bounce float value.- Returns:
- The bounce float value.
-
setBounce
void setBounce(float val) Set the bounce field.- Parameters:
val- The float to set.
-
getContactNormal
void getContactNormal(float[] val) Return the contactNormal value in the argument float[]- Parameters:
val- The float[] to initialize.
-
setContactNormal
void setContactNormal(float[] val) Set the contactNormal field.- Parameters:
val- The float[] to set.
-
getDepth
float getDepth()Return the depth float value.- Returns:
- The depth float value.
-
setDepth
void setDepth(float val) Set the depth field.- Parameters:
val- The float to set.
-
getFrictionCoefficients
void getFrictionCoefficients(float[] val) Return the frictionCoefficients value in the argument float[]- Parameters:
val- The float[] to initialize.
-
setFrictionCoefficients
void setFrictionCoefficients(float[] val) Set the frictionCoefficients field.- Parameters:
val- The float[] to set.
-
getFrictionDirection
void getFrictionDirection(float[] val) Return the frictionDirection value in the argument float[]- Parameters:
val- The float[] to initialize.
-
setFrictionDirection
void setFrictionDirection(float[] val) Set the frictionDirection field.- Parameters:
val- The float[] to set.
-
getGeometry1
-
setGeometry1
Set the geometry1 field.- Parameters:
val- The X3DNBodyCollidableNode to set.
-
setGeometry1
Set the geometry1 field.- Parameters:
val- The X3DProtoInstance to set.
-
getGeometry2
-
setGeometry2
Set the geometry2 field.- Parameters:
val- The X3DNBodyCollidableNode to set.
-
setGeometry2
Set the geometry2 field.- Parameters:
val- The X3DProtoInstance to set.
-
getMinBounceSpeed
float getMinBounceSpeed()Return the minBounceSpeed float value.- Returns:
- The minBounceSpeed float value.
-
setMinBounceSpeed
void setMinBounceSpeed(float val) Set the minBounceSpeed field.- Parameters:
val- The float to set.
-
getPosition
void getPosition(float[] val) Return the position value in the argument float[]- Parameters:
val- The float[] to initialize.
-
setPosition
void setPosition(float[] val) Set the position field.- Parameters:
val- The float[] to set.
-
getSlipCoefficients
void getSlipCoefficients(float[] val) Return the slipCoefficients value in the argument float[]- Parameters:
val- The float[] to initialize.
-
setSlipCoefficients
void setSlipCoefficients(float[] val) Set the slipCoefficients field.- Parameters:
val- The float[] to set.
-
getSurfaceSpeed
void getSurfaceSpeed(float[] val) Return the surfaceSpeed value in the argument float[]- Parameters:
val- The float[] to initialize.
-
setSurfaceSpeed
void setSurfaceSpeed(float[] val) Set the surfaceSpeed field.- Parameters:
val- The float[] to set.
-
getSoftnessConstantForceMix
float getSoftnessConstantForceMix()Return the softnessConstantForceMix float value.- Returns:
- The softnessConstantForceMix float value.
-
setSoftnessConstantForceMix
void setSoftnessConstantForceMix(float val) Set the softnessConstantForceMix field.- Parameters:
val- The float to set.
-
getSoftnessErrorCorrection
float getSoftnessErrorCorrection()Return the softnessErrorCorrection float value.- Returns:
- The softnessErrorCorrection float value.
-
setSoftnessErrorCorrection
void setSoftnessErrorCorrection(float val) Set the softnessErrorCorrection field.- Parameters:
val- The float to set.
-