Class SAIContact
java.lang.Object
org.web3d.vrml.scripting.external.sai.SAINode
org.xj3d.sai.external.node.rigidbodyphysics.SAIContact
-
Constructor Summary
ConstructorsConstructorDescriptionSAIContact
(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor -
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 class org.web3d.vrml.scripting.external.sai.SAINode
dispose, equals, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, hashCode, isRealized, realize, setMetadata
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadata
-
Constructor Details
-
SAIContact
public SAIContact(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor- Parameters:
queue
-
-
-
Method Details
-
getNumAppliedParameters
public int getNumAppliedParameters()Return the number of MFString items in the appliedParameters field.- Specified by:
getNumAppliedParameters
in interfaceContact
- Returns:
- the number of MFString items in the appliedParameters field.
-
getAppliedParameters
Return the appliedParameters value in the argument String[]- Specified by:
getAppliedParameters
in interfaceContact
- Parameters:
val
- The String[] to initialize.
-
setAppliedParameters
Set the appliedParameters field.- Specified by:
setAppliedParameters
in interfaceContact
- Parameters:
val
- The String[] to set.
-
getBody1
-
setBody1
-
getBody2
-
setBody2
-
getBounce
-
setBounce
-
getContactNormal
public void getContactNormal(float[] val) Return the contactNormal value in the argument float[]- Specified by:
getContactNormal
in interfaceContact
- Parameters:
val
- The float[] to initialize.
-
setContactNormal
public void setContactNormal(float[] val) Set the contactNormal field.- Specified by:
setContactNormal
in interfaceContact
- Parameters:
val
- The float[] to set.
-
getDepth
-
setDepth
-
getFrictionCoefficients
public void getFrictionCoefficients(float[] val) Return the frictionCoefficients value in the argument float[]- Specified by:
getFrictionCoefficients
in interfaceContact
- Parameters:
val
- The float[] to initialize.
-
setFrictionCoefficients
public void setFrictionCoefficients(float[] val) Set the frictionCoefficients field.- Specified by:
setFrictionCoefficients
in interfaceContact
- Parameters:
val
- The float[] to set.
-
getFrictionDirection
public void getFrictionDirection(float[] val) Return the frictionDirection value in the argument float[]- Specified by:
getFrictionDirection
in interfaceContact
- Parameters:
val
- The float[] to initialize.
-
setFrictionDirection
public void setFrictionDirection(float[] val) Set the frictionDirection field.- Specified by:
setFrictionDirection
in interfaceContact
- Parameters:
val
- The float[] to set.
-
getGeometry1
Return the geometry1 X3DNode value.- Specified by:
getGeometry1
in interfaceContact
- Returns:
- The geometry1 X3DNode value.
-
setGeometry1
Set the geometry1 field.- Specified by:
setGeometry1
in interfaceContact
- Parameters:
val
- The X3DNBodyCollidableNode to set.
-
setGeometry1
Set the geometry1 field.- Specified by:
setGeometry1
in interfaceContact
- Parameters:
val
- The X3DProtoInstance to set.
-
getGeometry2
Return the geometry2 X3DNode value.- Specified by:
getGeometry2
in interfaceContact
- Returns:
- The geometry2 X3DNode value.
-
setGeometry2
Set the geometry2 field.- Specified by:
setGeometry2
in interfaceContact
- Parameters:
val
- The X3DNBodyCollidableNode to set.
-
setGeometry2
Set the geometry2 field.- Specified by:
setGeometry2
in interfaceContact
- Parameters:
val
- The X3DProtoInstance to set.
-
getMinBounceSpeed
public float getMinBounceSpeed()Return the minBounceSpeed float value.- Specified by:
getMinBounceSpeed
in interfaceContact
- Returns:
- The minBounceSpeed float value.
-
setMinBounceSpeed
public void setMinBounceSpeed(float val) Set the minBounceSpeed field.- Specified by:
setMinBounceSpeed
in interfaceContact
- Parameters:
val
- The float to set.
-
getPosition
public void getPosition(float[] val) Return the position value in the argument float[]- Specified by:
getPosition
in interfaceContact
- Parameters:
val
- The float[] to initialize.
-
setPosition
public void setPosition(float[] val) Set the position field.- Specified by:
setPosition
in interfaceContact
- Parameters:
val
- The float[] to set.
-
getSlipCoefficients
public void getSlipCoefficients(float[] val) Return the slipCoefficients value in the argument float[]- Specified by:
getSlipCoefficients
in interfaceContact
- Parameters:
val
- The float[] to initialize.
-
setSlipCoefficients
public void setSlipCoefficients(float[] val) Set the slipCoefficients field.- Specified by:
setSlipCoefficients
in interfaceContact
- Parameters:
val
- The float[] to set.
-
getSurfaceSpeed
public void getSurfaceSpeed(float[] val) Return the surfaceSpeed value in the argument float[]- Specified by:
getSurfaceSpeed
in interfaceContact
- Parameters:
val
- The float[] to initialize.
-
setSurfaceSpeed
public void setSurfaceSpeed(float[] val) Set the surfaceSpeed field.- Specified by:
setSurfaceSpeed
in interfaceContact
- Parameters:
val
- The float[] to set.
-
getSoftnessConstantForceMix
public float getSoftnessConstantForceMix()Return the softnessConstantForceMix float value.- Specified by:
getSoftnessConstantForceMix
in interfaceContact
- Returns:
- The softnessConstantForceMix float value.
-
setSoftnessConstantForceMix
public void setSoftnessConstantForceMix(float val) Set the softnessConstantForceMix field.- Specified by:
setSoftnessConstantForceMix
in interfaceContact
- Parameters:
val
- The float to set.
-
getSoftnessErrorCorrection
public float getSoftnessErrorCorrection()Return the softnessErrorCorrection float value.- Specified by:
getSoftnessErrorCorrection
in interfaceContact
- Returns:
- The softnessErrorCorrection float value.
-
setSoftnessErrorCorrection
public void setSoftnessErrorCorrection(float val) Set the softnessErrorCorrection field.- Specified by:
setSoftnessErrorCorrection
in interfaceContact
- Parameters:
val
- The float to set.
-