Class SAIContact
java.lang.Object
org.web3d.vrml.scripting.sai.BaseNode
org.xj3d.sai.internal.node.rigidbodyphysics.SAIContact
-
Field Summary
Fields inherited from class org.web3d.vrml.scripting.sai.BaseNode
accessPermitted, fieldQueue, fieldRefMap, realNode -
Constructor Summary
ConstructorsConstructorDescriptionSAIContact(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) Constructor -
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 class org.web3d.vrml.scripting.sai.BaseNode
checkAccess, dispose, equals, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, hashCode, isRealized, realize, setMetadata, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadata
-
Constructor Details
-
SAIContact
public SAIContact(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) Constructor- Parameters:
bnf-
-
-
Method Details
-
getNumAppliedParameters
public int getNumAppliedParameters()Return the number of MFString items in the appliedParameters field.- Specified by:
getNumAppliedParametersin interfaceContact- Returns:
- the number of MFString items in the appliedParameters field.
-
getAppliedParameters
Return the appliedParameters value in the argument String[]- Specified by:
getAppliedParametersin interfaceContact- Parameters:
val- The String[] to initialize.
-
setAppliedParameters
Set the appliedParameters field.- Specified by:
setAppliedParametersin 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:
getContactNormalin interfaceContact- Parameters:
val- The float[] to initialize.
-
setContactNormal
public void setContactNormal(float[] val) Set the contactNormal field.- Specified by:
setContactNormalin 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:
getFrictionCoefficientsin interfaceContact- Parameters:
val- The float[] to initialize.
-
setFrictionCoefficients
public void setFrictionCoefficients(float[] val) Set the frictionCoefficients field.- Specified by:
setFrictionCoefficientsin interfaceContact- Parameters:
val- The float[] to set.
-
getFrictionDirection
public void getFrictionDirection(float[] val) Return the frictionDirection value in the argument float[]- Specified by:
getFrictionDirectionin interfaceContact- Parameters:
val- The float[] to initialize.
-
setFrictionDirection
public void setFrictionDirection(float[] val) Set the frictionDirection field.- Specified by:
setFrictionDirectionin interfaceContact- Parameters:
val- The float[] to set.
-
getGeometry1
Return the geometry1 X3DNode value.- Specified by:
getGeometry1in interfaceContact- Returns:
- The geometry1 X3DNode value.
-
setGeometry1
Set the geometry1 field.- Specified by:
setGeometry1in interfaceContact- Parameters:
val- The X3DNBodyCollidableNode to set.
-
setGeometry1
Set the geometry1 field.- Specified by:
setGeometry1in interfaceContact- Parameters:
val- The X3DProtoInstance to set.
-
getGeometry2
Return the geometry2 X3DNode value.- Specified by:
getGeometry2in interfaceContact- Returns:
- The geometry2 X3DNode value.
-
setGeometry2
Set the geometry2 field.- Specified by:
setGeometry2in interfaceContact- Parameters:
val- The X3DNBodyCollidableNode to set.
-
setGeometry2
Set the geometry2 field.- Specified by:
setGeometry2in interfaceContact- Parameters:
val- The X3DProtoInstance to set.
-
getMinBounceSpeed
public float getMinBounceSpeed()Return the minBounceSpeed float value.- Specified by:
getMinBounceSpeedin interfaceContact- Returns:
- The minBounceSpeed float value.
-
setMinBounceSpeed
public void setMinBounceSpeed(float val) Set the minBounceSpeed field.- Specified by:
setMinBounceSpeedin interfaceContact- Parameters:
val- The float to set.
-
getPosition
public void getPosition(float[] val) Return the position value in the argument float[]- Specified by:
getPositionin interfaceContact- Parameters:
val- The float[] to initialize.
-
setPosition
public void setPosition(float[] val) Set the position field.- Specified by:
setPositionin interfaceContact- Parameters:
val- The float[] to set.
-
getSlipCoefficients
public void getSlipCoefficients(float[] val) Return the slipCoefficients value in the argument float[]- Specified by:
getSlipCoefficientsin interfaceContact- Parameters:
val- The float[] to initialize.
-
setSlipCoefficients
public void setSlipCoefficients(float[] val) Set the slipCoefficients field.- Specified by:
setSlipCoefficientsin interfaceContact- Parameters:
val- The float[] to set.
-
getSurfaceSpeed
public void getSurfaceSpeed(float[] val) Return the surfaceSpeed value in the argument float[]- Specified by:
getSurfaceSpeedin interfaceContact- Parameters:
val- The float[] to initialize.
-
setSurfaceSpeed
public void setSurfaceSpeed(float[] val) Set the surfaceSpeed field.- Specified by:
setSurfaceSpeedin interfaceContact- Parameters:
val- The float[] to set.
-
getSoftnessConstantForceMix
public float getSoftnessConstantForceMix()Return the softnessConstantForceMix float value.- Specified by:
getSoftnessConstantForceMixin interfaceContact- Returns:
- The softnessConstantForceMix float value.
-
setSoftnessConstantForceMix
public void setSoftnessConstantForceMix(float val) Set the softnessConstantForceMix field.- Specified by:
setSoftnessConstantForceMixin interfaceContact- Parameters:
val- The float to set.
-
getSoftnessErrorCorrection
public float getSoftnessErrorCorrection()Return the softnessErrorCorrection float value.- Specified by:
getSoftnessErrorCorrectionin interfaceContact- Returns:
- The softnessErrorCorrection float value.
-
setSoftnessErrorCorrection
public void setSoftnessErrorCorrection(float val) Set the softnessErrorCorrection field.- Specified by:
setSoftnessErrorCorrectionin interfaceContact- Parameters:
val- The float to set.
-