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 TypeMethodDescriptionbooleanReturn the autoDisable boolean value.voidReturn the bodies value in the argument X3DNode[]Return the collider X3DNode value.floatReturn the constantForceMix float value.floatReturn the contactSurfaceThickness float value.floatReturn the disableAngularSpeed float value.floatReturn the disableLinearSpeed float value.floatReturn the disableTime float value.booleanReturn the enabled boolean value.floatReturn the errorCorrectionFactor float value.voidgetGravity(float[] val) Return the gravity value in the argument float[]intReturn the iterations int value.voidReturn the joints value in the argument X3DNode[]floatReturn the maxCorrectionSpeed float value.intReturn the number of MFNode items in the bodies field.intReturn the number of MFNode items in the joints field.booleanReturn the preferAccuracy boolean value.voidsetAutoDisable(boolean val) Set the autoDisable field.voidSet the bodies field.voidsetCollider(X3DNode val) Set the collider field.voidsetConstantForceMix(float val) Set the constantForceMix field.voidsetContacts(X3DNode[] val) Set the contacts field.voidsetContactSurfaceThickness(float val) Set the contactSurfaceThickness field.voidsetDisableAngularSpeed(float val) Set the disableAngularSpeed field.voidsetDisableLinearSpeed(float val) Set the disableLinearSpeed field.voidsetDisableTime(float val) Set the disableTime field.voidsetEnabled(boolean val) Set the enabled field.voidsetErrorCorrectionFactor(float val) Set the errorCorrectionFactor field.voidsetGravity(float[] val) Set the gravity field.voidsetIterations(int val) Set the iterations field.voidSet the joints field.voidsetMaxCorrectionSpeed(float val) Set the maxCorrectionSpeed field.voidsetPreferAccuracy(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
-