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 TypeMethodDescriptionvoid
getAppliedParameters
(String[] val) Return the appliedParameters value in the argument String[]float
Return the bounce float value.void
getCollidables
(X3DNode[] val) Return the collidables value in the argument X3DNode[]boolean
Return the enabled boolean value.void
getFrictionCoefficients
(float[] val) Return the frictionCoefficients value in the argument float[]float
Return the minBounceSpeed float value.int
Return the number of MFString items in the appliedParameters field.int
Return the number of MFNode items in the collidables field.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
setBounce
(float val) Set the bounce field.void
setCollidables
(X3DNode[] val) Set the collidables field.void
setEnabled
(boolean val) Set the enabled field.void
setFrictionCoefficients
(float[] val) Set the frictionCoefficients field.void
setMinBounceSpeed
(float val) Set the minBounceSpeed 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.sai.BaseNode
checkAccess, dispose, equals, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, hashCode, isRealized, realize, setMetadata, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
getNumCollidables
in interfaceCollisionCollection
- Returns:
- the number of MFNode items in the collidables field.
-
getCollidables
Return the collidables value in the argument X3DNode[]- Specified by:
getCollidables
in interfaceCollisionCollection
- Parameters:
val
- The X3DNode[] to initialize.
-
setCollidables
Set the collidables field.- Specified by:
setCollidables
in interfaceCollisionCollection
- Parameters:
val
- The X3DNode[] to set.
-
getEnabled
public boolean getEnabled()Return the enabled boolean value.- Specified by:
getEnabled
in interfaceCollisionCollection
- Returns:
- The enabled boolean value.
-
setEnabled
public void setEnabled(boolean val) Set the enabled field.- Specified by:
setEnabled
in interfaceCollisionCollection
- Parameters:
val
- The boolean to set.
-
getBounce
public float getBounce()Return the bounce float value.- Specified by:
getBounce
in interfaceCollisionCollection
- Returns:
- The bounce float value.
-
setBounce
public void setBounce(float val) Set the bounce field.- Specified by:
setBounce
in interfaceCollisionCollection
- Parameters:
val
- The float to set.
-
getMinBounceSpeed
public float getMinBounceSpeed()Return the minBounceSpeed float value.- Specified by:
getMinBounceSpeed
in interfaceCollisionCollection
- Returns:
- The minBounceSpeed float value.
-
setMinBounceSpeed
public void setMinBounceSpeed(float val) Set the minBounceSpeed field.- Specified by:
setMinBounceSpeed
in interfaceCollisionCollection
- Parameters:
val
- The float to set.
-
getFrictionCoefficients
public void getFrictionCoefficients(float[] val) Return the frictionCoefficients value in the argument float[]- Specified by:
getFrictionCoefficients
in interfaceCollisionCollection
- Parameters:
val
- The float[] to initialize.
-
setFrictionCoefficients
public void setFrictionCoefficients(float[] val) Set the frictionCoefficients field.- Specified by:
setFrictionCoefficients
in interfaceCollisionCollection
- Parameters:
val
- The float[] to set.
-
getSlipCoefficients
public void getSlipCoefficients(float[] val) Return the slipCoefficients value in the argument float[]- Specified by:
getSlipCoefficients
in interfaceCollisionCollection
- Parameters:
val
- The float[] to initialize.
-
setSlipCoefficients
public void setSlipCoefficients(float[] val) Set the slipCoefficients field.- Specified by:
setSlipCoefficients
in interfaceCollisionCollection
- Parameters:
val
- The float[] to set.
-
getSurfaceSpeed
public void getSurfaceSpeed(float[] val) Return the surfaceSpeed value in the argument float[]- Specified by:
getSurfaceSpeed
in interfaceCollisionCollection
- Parameters:
val
- The float[] to initialize.
-
setSurfaceSpeed
public void setSurfaceSpeed(float[] val) Set the surfaceSpeed field.- Specified by:
setSurfaceSpeed
in interfaceCollisionCollection
- Parameters:
val
- The float[] to set.
-
getNumAppliedParameters
public int getNumAppliedParameters()Return the number of MFString items in the appliedParameters field.- Specified by:
getNumAppliedParameters
in interfaceCollisionCollection
- Returns:
- the number of MFString items in the appliedParameters field.
-
getAppliedParameters
Return the appliedParameters value in the argument String[]- Specified by:
getAppliedParameters
in interfaceCollisionCollection
- Parameters:
val
- The String[] to initialize.
-
setAppliedParameters
Set the appliedParameters field.- Specified by:
setAppliedParameters
in interfaceCollisionCollection
- Parameters:
val
- The String[] to set.
-
getSoftnessConstantForceMix
public float getSoftnessConstantForceMix()Return the softnessConstantForceMix float value.- Specified by:
getSoftnessConstantForceMix
in interfaceCollisionCollection
- Returns:
- The softnessConstantForceMix float value.
-
setSoftnessConstantForceMix
public void setSoftnessConstantForceMix(float val) Set the softnessConstantForceMix field.- Specified by:
setSoftnessConstantForceMix
in interfaceCollisionCollection
- Parameters:
val
- The float to set.
-
getSoftnessErrorCorrection
public float getSoftnessErrorCorrection()Return the softnessErrorCorrection float value.- Specified by:
getSoftnessErrorCorrection
in interfaceCollisionCollection
- Returns:
- The softnessErrorCorrection float value.
-
setSoftnessErrorCorrection
public void setSoftnessErrorCorrection(float val) Set the softnessErrorCorrection field.- Specified by:
setSoftnessErrorCorrection
in interfaceCollisionCollection
- Parameters:
val
- The float to set.
-