Class SAICollisionCollection
java.lang.Object
org.web3d.vrml.scripting.sai.BaseNode
org.xj3d.sai.internal.node.rigidbodyphysics.SAICollisionCollection
- All Implemented Interfaces:
CollisionCollection,X3DChildNode,X3DNode
A concrete implementation of the CollisionCollection node interface
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Field Summary
Fields inherited from class org.web3d.vrml.scripting.sai.BaseNode
accessPermitted, fieldQueue, fieldRefMap, realNode -
Constructor Summary
ConstructorsConstructorDescriptionSAICollisionCollection(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[]floatReturn the bounce float value.voidgetCollidables(X3DNode[] val) Return the collidables value in the argument X3DNode[]booleanReturn the enabled boolean value.voidgetFrictionCoefficients(float[] val) Return the frictionCoefficients value in the argument float[]floatReturn the minBounceSpeed float value.intReturn the number of MFString items in the appliedParameters field.intReturn the number of MFNode items in the collidables field.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.voidsetBounce(float val) Set the bounce field.voidsetCollidables(X3DNode[] val) Set the collidables field.voidsetEnabled(boolean val) Set the enabled field.voidsetFrictionCoefficients(float[] val) Set the frictionCoefficients field.voidsetMinBounceSpeed(float val) Set the minBounceSpeed 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
-
SAICollisionCollection
public SAICollisionCollection(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) Constructor- Parameters:
bnf-
-
-
Method Details
-
getNumCollidables
public int getNumCollidables()Return the number of MFNode items in the collidables field.- Specified by:
getNumCollidablesin interfaceCollisionCollection- Returns:
- the number of MFNode items in the collidables field.
-
getCollidables
Return the collidables value in the argument X3DNode[]- Specified by:
getCollidablesin interfaceCollisionCollection- Parameters:
val- The X3DNode[] to initialize.
-
setCollidables
Set the collidables field.- Specified by:
setCollidablesin interfaceCollisionCollection- Parameters:
val- The X3DNode[] to set.
-
getEnabled
public boolean getEnabled()Return the enabled boolean value.- Specified by:
getEnabledin interfaceCollisionCollection- Returns:
- The enabled boolean value.
-
setEnabled
public void setEnabled(boolean val) Set the enabled field.- Specified by:
setEnabledin interfaceCollisionCollection- Parameters:
val- The boolean to set.
-
getBounce
public float getBounce()Return the bounce float value.- Specified by:
getBouncein interfaceCollisionCollection- Returns:
- The bounce float value.
-
setBounce
public void setBounce(float val) Set the bounce field.- Specified by:
setBouncein interfaceCollisionCollection- Parameters:
val- The float to set.
-
getMinBounceSpeed
public float getMinBounceSpeed()Return the minBounceSpeed float value.- Specified by:
getMinBounceSpeedin interfaceCollisionCollection- Returns:
- The minBounceSpeed float value.
-
setMinBounceSpeed
public void setMinBounceSpeed(float val) Set the minBounceSpeed field.- Specified by:
setMinBounceSpeedin interfaceCollisionCollection- Parameters:
val- The float to set.
-
getFrictionCoefficients
public void getFrictionCoefficients(float[] val) Return the frictionCoefficients value in the argument float[]- Specified by:
getFrictionCoefficientsin interfaceCollisionCollection- Parameters:
val- The float[] to initialize.
-
setFrictionCoefficients
public void setFrictionCoefficients(float[] val) Set the frictionCoefficients field.- Specified by:
setFrictionCoefficientsin interfaceCollisionCollection- Parameters:
val- The float[] to set.
-
getSlipCoefficients
public void getSlipCoefficients(float[] val) Return the slipCoefficients value in the argument float[]- Specified by:
getSlipCoefficientsin interfaceCollisionCollection- Parameters:
val- The float[] to initialize.
-
setSlipCoefficients
public void setSlipCoefficients(float[] val) Set the slipCoefficients field.- Specified by:
setSlipCoefficientsin interfaceCollisionCollection- Parameters:
val- The float[] to set.
-
getSurfaceSpeed
public void getSurfaceSpeed(float[] val) Return the surfaceSpeed value in the argument float[]- Specified by:
getSurfaceSpeedin interfaceCollisionCollection- Parameters:
val- The float[] to initialize.
-
setSurfaceSpeed
public void setSurfaceSpeed(float[] val) Set the surfaceSpeed field.- Specified by:
setSurfaceSpeedin interfaceCollisionCollection- Parameters:
val- The float[] to set.
-
getNumAppliedParameters
public int getNumAppliedParameters()Return the number of MFString items in the appliedParameters field.- Specified by:
getNumAppliedParametersin interfaceCollisionCollection- Returns:
- the number of MFString items in the appliedParameters field.
-
getAppliedParameters
Return the appliedParameters value in the argument String[]- Specified by:
getAppliedParametersin interfaceCollisionCollection- Parameters:
val- The String[] to initialize.
-
setAppliedParameters
Set the appliedParameters field.- Specified by:
setAppliedParametersin interfaceCollisionCollection- Parameters:
val- The String[] to set.
-
getSoftnessConstantForceMix
public float getSoftnessConstantForceMix()Return the softnessConstantForceMix float value.- Specified by:
getSoftnessConstantForceMixin interfaceCollisionCollection- Returns:
- The softnessConstantForceMix float value.
-
setSoftnessConstantForceMix
public void setSoftnessConstantForceMix(float val) Set the softnessConstantForceMix field.- Specified by:
setSoftnessConstantForceMixin interfaceCollisionCollection- Parameters:
val- The float to set.
-
getSoftnessErrorCorrection
public float getSoftnessErrorCorrection()Return the softnessErrorCorrection float value.- Specified by:
getSoftnessErrorCorrectionin interfaceCollisionCollection- Returns:
- The softnessErrorCorrection float value.
-
setSoftnessErrorCorrection
public void setSoftnessErrorCorrection(float val) Set the softnessErrorCorrection field.- Specified by:
setSoftnessErrorCorrectionin interfaceCollisionCollection- Parameters:
val- The float to set.
-