Class SAIRigidBodyCollection
java.lang.Object
org.web3d.vrml.scripting.sai.BaseNode
org.xj3d.sai.internal.node.rigidbodyphysics.SAIRigidBodyCollection
- All Implemented Interfaces:
RigidBodyCollection,X3DChildNode,X3DNode
A concrete implementation of the RigidBodyCollection 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
ConstructorsConstructorDescriptionSAIRigidBodyCollection(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) Constructor -
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 set_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 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
-
SAIRigidBodyCollection
public SAIRigidBodyCollection(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) Constructor- Parameters:
node-refQueue-fac-fal-bnf-
-
-
Method Details
-
setContacts
Set the set_contacts field.- Specified by:
setContactsin interfaceRigidBodyCollection- Parameters:
val- The X3DNode[] to set.
-
getAutoDisable
public boolean getAutoDisable()Return the autoDisable boolean value.- Specified by:
getAutoDisablein interfaceRigidBodyCollection- Returns:
- The autoDisable boolean value.
-
setAutoDisable
public void setAutoDisable(boolean val) Set the autoDisable field.- Specified by:
setAutoDisablein interfaceRigidBodyCollection- Parameters:
val- The boolean to set.
-
getNumBodies
public int getNumBodies()Return the number of MFNode items in the bodies field.- Specified by:
getNumBodiesin interfaceRigidBodyCollection- Returns:
- the number of MFNode items in the bodies field.
-
getBodies
Return the bodies value in the argument X3DNode[]- Specified by:
getBodiesin interfaceRigidBodyCollection- Parameters:
val- The X3DNode[] to initialize.
-
setBodies
Set the bodies field.- Specified by:
setBodiesin interfaceRigidBodyCollection- Parameters:
val- The X3DNode[] to set.
-
getConstantForceMix
public float getConstantForceMix()Return the constantForceMix float value.- Specified by:
getConstantForceMixin interfaceRigidBodyCollection- Returns:
- The constantForceMix float value.
-
setConstantForceMix
public void setConstantForceMix(float val) Set the constantForceMix field.- Specified by:
setConstantForceMixin interfaceRigidBodyCollection- Parameters:
val- The float to set.
-
getContactSurfaceThickness
public float getContactSurfaceThickness()Return the contactSurfaceThickness float value.- Specified by:
getContactSurfaceThicknessin interfaceRigidBodyCollection- Returns:
- The contactSurfaceThickness float value.
-
setContactSurfaceThickness
public void setContactSurfaceThickness(float val) Set the contactSurfaceThickness field.- Specified by:
setContactSurfaceThicknessin interfaceRigidBodyCollection- Parameters:
val- The float to set.
-
getDisableAngularSpeed
public float getDisableAngularSpeed()Return the disableAngularSpeed float value.- Specified by:
getDisableAngularSpeedin interfaceRigidBodyCollection- Returns:
- The disableAngularSpeed float value.
-
setDisableAngularSpeed
public void setDisableAngularSpeed(float val) Set the disableAngularSpeed field.- Specified by:
setDisableAngularSpeedin interfaceRigidBodyCollection- Parameters:
val- The float to set.
-
getDisableLinearSpeed
public float getDisableLinearSpeed()Return the disableLinearSpeed float value.- Specified by:
getDisableLinearSpeedin interfaceRigidBodyCollection- Returns:
- The disableLinearSpeed float value.
-
setDisableLinearSpeed
public void setDisableLinearSpeed(float val) Set the disableLinearSpeed field.- Specified by:
setDisableLinearSpeedin interfaceRigidBodyCollection- Parameters:
val- The float to set.
-
getDisableTime
public float getDisableTime()Return the disableTime float value.- Specified by:
getDisableTimein interfaceRigidBodyCollection- Returns:
- The disableTime float value.
-
setDisableTime
public void setDisableTime(float val) Set the disableTime field.- Specified by:
setDisableTimein interfaceRigidBodyCollection- Parameters:
val- The float to set.
-
getEnabled
public boolean getEnabled()Return the enabled boolean value.- Specified by:
getEnabledin interfaceRigidBodyCollection- Returns:
- The enabled boolean value.
-
setEnabled
public void setEnabled(boolean val) Set the enabled field.- Specified by:
setEnabledin interfaceRigidBodyCollection- Parameters:
val- The boolean to set.
-
getErrorCorrectionFactor
public float getErrorCorrectionFactor()Return the errorCorrectionFactor float value.- Specified by:
getErrorCorrectionFactorin interfaceRigidBodyCollection- Returns:
- The errorCorrectionFactor float value.
-
setErrorCorrectionFactor
public void setErrorCorrectionFactor(float val) Set the errorCorrectionFactor field.- Specified by:
setErrorCorrectionFactorin interfaceRigidBodyCollection- Parameters:
val- The float to set.
-
getGravity
public void getGravity(float[] val) Return the gravity value in the argument float[]- Specified by:
getGravityin interfaceRigidBodyCollection- Parameters:
val- The float[] to initialize.
-
setGravity
public void setGravity(float[] val) Set the gravity field.- Specified by:
setGravityin interfaceRigidBodyCollection- Parameters:
val- The float[] to set.
-
getIterations
public int getIterations()Return the iterations int value.- Specified by:
getIterationsin interfaceRigidBodyCollection- Returns:
- The iterations int value.
-
setIterations
public void setIterations(int val) Set the iterations field.- Specified by:
setIterationsin interfaceRigidBodyCollection- Parameters:
val- The int to set.
-
getNumJoints
public int getNumJoints()Return the number of MFNode items in the joints field.- Specified by:
getNumJointsin interfaceRigidBodyCollection- Returns:
- the number of MFNode items in the joints field.
-
getJoints
Return the joints value in the argument X3DNode[]- Specified by:
getJointsin interfaceRigidBodyCollection- Parameters:
val- The X3DNode[] to initialize.
-
setJoints
Set the joints field.- Specified by:
setJointsin interfaceRigidBodyCollection- Parameters:
val- The X3DNode[] to set.
-
getMaxCorrectionSpeed
public float getMaxCorrectionSpeed()Return the maxCorrectionSpeed float value.- Specified by:
getMaxCorrectionSpeedin interfaceRigidBodyCollection- Returns:
- The maxCorrectionSpeed float value.
-
setMaxCorrectionSpeed
public void setMaxCorrectionSpeed(float val) Set the maxCorrectionSpeed field.- Specified by:
setMaxCorrectionSpeedin interfaceRigidBodyCollection- Parameters:
val- The float to set.
-
getPreferAccuracy
public boolean getPreferAccuracy()Return the preferAccuracy boolean value.- Specified by:
getPreferAccuracyin interfaceRigidBodyCollection- Returns:
- The preferAccuracy boolean value.
-
setPreferAccuracy
public void setPreferAccuracy(boolean val) Set the preferAccuracy field.- Specified by:
setPreferAccuracyin interfaceRigidBodyCollection- Parameters:
val- The boolean to set.
-
getCollider
Return the collider X3DNode value.- Specified by:
getColliderin interfaceRigidBodyCollection- Returns:
- The collider X3DNode value.
-
setCollider
Set the collider field.- Specified by:
setColliderin interfaceRigidBodyCollection- Parameters:
val- The X3DNode to set.
-