Interface RigidBodyCollection
- All Superinterfaces:
X3DChildNode
,X3DNode
- All Known Implementing Classes:
SAIRigidBodyCollection
,SAIRigidBodyCollection
Defines the requirements of an X3D RigidBodyCollection node
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
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 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 interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadata
-
Method Details
-
setContacts
-
getAutoDisable
boolean getAutoDisable()Return the autoDisable boolean value.- Returns:
- The autoDisable boolean value.
-
setAutoDisable
void setAutoDisable(boolean val) Set the autoDisable field.- Parameters:
val
- The boolean to set.
-
getNumBodies
int getNumBodies()Return the number of MFNode items in the bodies field.- Returns:
- the number of MFNode items in the bodies field.
-
getBodies
Return the bodies value in the argument X3DNode[]- Parameters:
val
- The X3DNode[] to initialize.
-
setBodies
-
getConstantForceMix
float getConstantForceMix()Return the constantForceMix float value.- Returns:
- The constantForceMix float value.
-
setConstantForceMix
void setConstantForceMix(float val) Set the constantForceMix field.- Parameters:
val
- The float to set.
-
getContactSurfaceThickness
float getContactSurfaceThickness()Return the contactSurfaceThickness float value.- Returns:
- The contactSurfaceThickness float value.
-
setContactSurfaceThickness
void setContactSurfaceThickness(float val) Set the contactSurfaceThickness field.- Parameters:
val
- The float to set.
-
getDisableAngularSpeed
float getDisableAngularSpeed()Return the disableAngularSpeed float value.- Returns:
- The disableAngularSpeed float value.
-
setDisableAngularSpeed
void setDisableAngularSpeed(float val) Set the disableAngularSpeed field.- Parameters:
val
- The float to set.
-
getDisableLinearSpeed
float getDisableLinearSpeed()Return the disableLinearSpeed float value.- Returns:
- The disableLinearSpeed float value.
-
setDisableLinearSpeed
void setDisableLinearSpeed(float val) Set the disableLinearSpeed field.- Parameters:
val
- The float to set.
-
getDisableTime
float getDisableTime()Return the disableTime float value.- Returns:
- The disableTime float value.
-
setDisableTime
void setDisableTime(float val) Set the disableTime field.- Parameters:
val
- The float to set.
-
getEnabled
boolean getEnabled()Return the enabled boolean value.- Returns:
- The enabled boolean value.
-
setEnabled
void setEnabled(boolean val) Set the enabled field.- Parameters:
val
- The boolean to set.
-
getErrorCorrectionFactor
float getErrorCorrectionFactor()Return the errorCorrectionFactor float value.- Returns:
- The errorCorrectionFactor float value.
-
setErrorCorrectionFactor
void setErrorCorrectionFactor(float val) Set the errorCorrectionFactor field.- Parameters:
val
- The float to set.
-
getGravity
void getGravity(float[] val) Return the gravity value in the argument float[]- Parameters:
val
- The float[] to initialize.
-
setGravity
void setGravity(float[] val) Set the gravity field.- Parameters:
val
- The float[] to set.
-
getIterations
int getIterations()Return the iterations int value.- Returns:
- The iterations int value.
-
setIterations
void setIterations(int val) Set the iterations field.- Parameters:
val
- The int to set.
-
getNumJoints
int getNumJoints()Return the number of MFNode items in the joints field.- Returns:
- the number of MFNode items in the joints field.
-
getJoints
Return the joints value in the argument X3DNode[]- Parameters:
val
- The X3DNode[] to initialize.
-
setJoints
-
getMaxCorrectionSpeed
float getMaxCorrectionSpeed()Return the maxCorrectionSpeed float value.- Returns:
- The maxCorrectionSpeed float value.
-
setMaxCorrectionSpeed
void setMaxCorrectionSpeed(float val) Set the maxCorrectionSpeed field.- Parameters:
val
- The float to set.
-
getPreferAccuracy
boolean getPreferAccuracy()Return the preferAccuracy boolean value.- Returns:
- The preferAccuracy boolean value.
-
setPreferAccuracy
void setPreferAccuracy(boolean val) Set the preferAccuracy field.- Parameters:
val
- The boolean to set.
-
getCollider
-
setCollider
-