Class SAIRigidBodyCollection
java.lang.Object
org.web3d.vrml.scripting.external.sai.SAINode
org.xj3d.sai.external.node.rigidbodyphysics.SAIRigidBodyCollection
- All Implemented Interfaces:
RigidBodyCollection
,X3DChildNode
,X3DNode
A concrete implementation of the RigidBodyCollection node interface
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Constructor Summary
ConstructorsConstructorDescriptionSAIRigidBodyCollection
(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return the autoDisable boolean value.void
Return the bodies value in the argument X3DNode[]Return the collider X3DNode value.float
Return the constantForceMix float value.float
Return the contactSurfaceThickness float value.float
Return the disableAngularSpeed float value.float
Return the disableLinearSpeed float value.float
Return the disableTime float value.boolean
Return the enabled boolean value.float
Return the errorCorrectionFactor float value.void
getGravity
(float[] val) Return the gravity value in the argument float[]int
Return the iterations int value.void
Return the joints value in the argument X3DNode[]float
Return the maxCorrectionSpeed float value.int
Return the number of MFNode items in the bodies field.int
Return the number of MFNode items in the joints field.boolean
Return the preferAccuracy boolean value.void
setAutoDisable
(boolean val) Set the autoDisable field.void
Set the bodies field.void
setCollider
(X3DNode val) Set the collider field.void
setConstantForceMix
(float val) Set the constantForceMix field.void
setContacts
(X3DNode[] val) Set the set_contacts field.void
setContactSurfaceThickness
(float val) Set the contactSurfaceThickness field.void
setDisableAngularSpeed
(float val) Set the disableAngularSpeed field.void
setDisableLinearSpeed
(float val) Set the disableLinearSpeed field.void
setDisableTime
(float val) Set the disableTime field.void
setEnabled
(boolean val) Set the enabled field.void
setErrorCorrectionFactor
(float val) Set the errorCorrectionFactor field.void
setGravity
(float[] val) Set the gravity field.void
setIterations
(int val) Set the iterations field.void
Set the joints field.void
setMaxCorrectionSpeed
(float val) Set the maxCorrectionSpeed field.void
setPreferAccuracy
(boolean val) Set the preferAccuracy 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
-
SAIRigidBodyCollection
public SAIRigidBodyCollection(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor- Parameters:
node
-nodeFactory
-fieldFactory
-queue
-
-
-
Method Details
-
setContacts
Set the set_contacts field.- Specified by:
setContacts
in interfaceRigidBodyCollection
- Parameters:
val
- The X3DNode[] to set.
-
getAutoDisable
public boolean getAutoDisable()Return the autoDisable boolean value.- Specified by:
getAutoDisable
in interfaceRigidBodyCollection
- Returns:
- The autoDisable boolean value.
-
setAutoDisable
public void setAutoDisable(boolean val) Set the autoDisable field.- Specified by:
setAutoDisable
in interfaceRigidBodyCollection
- Parameters:
val
- The boolean to set.
-
getNumBodies
public int getNumBodies()Return the number of MFNode items in the bodies field.- Specified by:
getNumBodies
in interfaceRigidBodyCollection
- Returns:
- the number of MFNode items in the bodies field.
-
getBodies
Return the bodies value in the argument X3DNode[]- Specified by:
getBodies
in interfaceRigidBodyCollection
- Parameters:
val
- The X3DNode[] to initialize.
-
setBodies
Set the bodies field.- Specified by:
setBodies
in interfaceRigidBodyCollection
- Parameters:
val
- The X3DNode[] to set.
-
getConstantForceMix
public float getConstantForceMix()Return the constantForceMix float value.- Specified by:
getConstantForceMix
in interfaceRigidBodyCollection
- Returns:
- The constantForceMix float value.
-
setConstantForceMix
public void setConstantForceMix(float val) Set the constantForceMix field.- Specified by:
setConstantForceMix
in interfaceRigidBodyCollection
- Parameters:
val
- The float to set.
-
getContactSurfaceThickness
public float getContactSurfaceThickness()Return the contactSurfaceThickness float value.- Specified by:
getContactSurfaceThickness
in interfaceRigidBodyCollection
- Returns:
- The contactSurfaceThickness float value.
-
setContactSurfaceThickness
public void setContactSurfaceThickness(float val) Set the contactSurfaceThickness field.- Specified by:
setContactSurfaceThickness
in interfaceRigidBodyCollection
- Parameters:
val
- The float to set.
-
getDisableAngularSpeed
public float getDisableAngularSpeed()Return the disableAngularSpeed float value.- Specified by:
getDisableAngularSpeed
in interfaceRigidBodyCollection
- Returns:
- The disableAngularSpeed float value.
-
setDisableAngularSpeed
public void setDisableAngularSpeed(float val) Set the disableAngularSpeed field.- Specified by:
setDisableAngularSpeed
in interfaceRigidBodyCollection
- Parameters:
val
- The float to set.
-
getDisableLinearSpeed
public float getDisableLinearSpeed()Return the disableLinearSpeed float value.- Specified by:
getDisableLinearSpeed
in interfaceRigidBodyCollection
- Returns:
- The disableLinearSpeed float value.
-
setDisableLinearSpeed
public void setDisableLinearSpeed(float val) Set the disableLinearSpeed field.- Specified by:
setDisableLinearSpeed
in interfaceRigidBodyCollection
- Parameters:
val
- The float to set.
-
getDisableTime
public float getDisableTime()Return the disableTime float value.- Specified by:
getDisableTime
in interfaceRigidBodyCollection
- Returns:
- The disableTime float value.
-
setDisableTime
public void setDisableTime(float val) Set the disableTime field.- Specified by:
setDisableTime
in interfaceRigidBodyCollection
- Parameters:
val
- The float to set.
-
getEnabled
public boolean getEnabled()Return the enabled boolean value.- Specified by:
getEnabled
in interfaceRigidBodyCollection
- Returns:
- The enabled boolean value.
-
setEnabled
public void setEnabled(boolean val) Set the enabled field.- Specified by:
setEnabled
in interfaceRigidBodyCollection
- Parameters:
val
- The boolean to set.
-
getErrorCorrectionFactor
public float getErrorCorrectionFactor()Return the errorCorrectionFactor float value.- Specified by:
getErrorCorrectionFactor
in interfaceRigidBodyCollection
- Returns:
- The errorCorrectionFactor float value.
-
setErrorCorrectionFactor
public void setErrorCorrectionFactor(float val) Set the errorCorrectionFactor field.- Specified by:
setErrorCorrectionFactor
in interfaceRigidBodyCollection
- Parameters:
val
- The float to set.
-
getGravity
public void getGravity(float[] val) Return the gravity value in the argument float[]- Specified by:
getGravity
in interfaceRigidBodyCollection
- Parameters:
val
- The float[] to initialize.
-
setGravity
public void setGravity(float[] val) Set the gravity field.- Specified by:
setGravity
in interfaceRigidBodyCollection
- Parameters:
val
- The float[] to set.
-
getIterations
public int getIterations()Return the iterations int value.- Specified by:
getIterations
in interfaceRigidBodyCollection
- Returns:
- The iterations int value.
-
setIterations
public void setIterations(int val) Set the iterations field.- Specified by:
setIterations
in interfaceRigidBodyCollection
- Parameters:
val
- The int to set.
-
getNumJoints
public int getNumJoints()Return the number of MFNode items in the joints field.- Specified by:
getNumJoints
in interfaceRigidBodyCollection
- Returns:
- the number of MFNode items in the joints field.
-
getJoints
Return the joints value in the argument X3DNode[]- Specified by:
getJoints
in interfaceRigidBodyCollection
- Parameters:
val
- The X3DNode[] to initialize.
-
setJoints
Set the joints field.- Specified by:
setJoints
in interfaceRigidBodyCollection
- Parameters:
val
- The X3DNode[] to set.
-
getMaxCorrectionSpeed
public float getMaxCorrectionSpeed()Return the maxCorrectionSpeed float value.- Specified by:
getMaxCorrectionSpeed
in interfaceRigidBodyCollection
- Returns:
- The maxCorrectionSpeed float value.
-
setMaxCorrectionSpeed
public void setMaxCorrectionSpeed(float val) Set the maxCorrectionSpeed field.- Specified by:
setMaxCorrectionSpeed
in interfaceRigidBodyCollection
- Parameters:
val
- The float to set.
-
getPreferAccuracy
public boolean getPreferAccuracy()Return the preferAccuracy boolean value.- Specified by:
getPreferAccuracy
in interfaceRigidBodyCollection
- Returns:
- The preferAccuracy boolean value.
-
setPreferAccuracy
public void setPreferAccuracy(boolean val) Set the preferAccuracy field.- Specified by:
setPreferAccuracy
in interfaceRigidBodyCollection
- Parameters:
val
- The boolean to set.
-
getCollider
Return the collider X3DNode value.- Specified by:
getCollider
in interfaceRigidBodyCollection
- Returns:
- The collider X3DNode value.
-
setCollider
Set the collider field.- Specified by:
setCollider
in interfaceRigidBodyCollection
- Parameters:
val
- The X3DNode to set.
-