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 TypeMethodDescriptionvoid
getAppliedParameters
(String[] val) Return the appliedParameters value in the argument String[]getBody1()
Return the body1 X3DNode value.getBody2()
Return the body2 X3DNode value.float
Return the bounce float value.void
getContactNormal
(float[] val) Return the contactNormal value in the argument float[]float
getDepth()
Return the depth float value.void
getFrictionCoefficients
(float[] val) Return the frictionCoefficients value in the argument float[]void
getFrictionDirection
(float[] val) Return the frictionDirection value in the argument float[]Return the geometry1 X3DNode value.Return the geometry2 X3DNode value.float
Return the minBounceSpeed float value.int
Return the number of MFString items in the appliedParameters field.void
getPosition
(float[] val) Return the position value in the argument float[]void
getSlipCoefficients
(float[] val) Return the slipCoefficients value in the argument float[]float
Return the softnessConstantForceMix float value.float
Return the softnessErrorCorrection float value.void
getSurfaceSpeed
(float[] val) Return the surfaceSpeed value in the argument float[]void
setAppliedParameters
(String[] val) Set the appliedParameters field.void
Set the body1 field.void
Set the body2 field.void
setBounce
(float val) Set the bounce field.void
setContactNormal
(float[] val) Set the contactNormal field.void
setDepth
(float val) Set the depth field.void
setFrictionCoefficients
(float[] val) Set the frictionCoefficients field.void
setFrictionDirection
(float[] val) Set the frictionDirection field.void
Set the geometry1 field.void
Set the geometry1 field.void
Set the geometry2 field.void
Set the geometry2 field.void
setMinBounceSpeed
(float val) Set the minBounceSpeed field.void
setPosition
(float[] val) Set the position field.void
setSlipCoefficients
(float[] val) Set the slipCoefficients field.void
setSoftnessConstantForceMix
(float val) Set the softnessConstantForceMix field.void
setSoftnessErrorCorrection
(float val) Set the softnessErrorCorrection field.void
setSurfaceSpeed
(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.
-