Class BaseRigidBodyCollection

java.lang.Object
org.web3d.vrml.renderer.common.nodes.AbstractNode
org.web3d.vrml.renderer.common.nodes.rigidphysics.BaseRigidBodyCollection
All Implemented Interfaces:
VRMLNode, FrameStateListener, VRMLChildNodeType, VRMLNodeType, VRMLRigidBodyGroupNodeType, VRMLWorldRootChildNodeType
Direct Known Subclasses:
NRRigidBodyCollection, OGLRigidBodyCollection

public class BaseRigidBodyCollection extends AbstractNode implements VRMLRigidBodyGroupNodeType, VRMLChildNodeType
Implementation of the RigidBodyCollection node.

In this implementation, the sets of nodes for the bodies and geometry are not expected to change much, if at all. As such, arrays are used to represent the field values, rather than the more customary ArrayList that other classes use for MFNode fields The X3D definition of RigidBody is:

 RigidBodyCollection : X3DChildNode {
   MFNode  [in]     set_contacts            [Contact]
   SFBool  [in,out] autoDisable             FALSE
   MFNode  [in,out] bodies                  []       [RigidBody]
   SFFloat [in,out] contactSurfaceThickness 0        [0,∞)
   SFFloat [in,out] disableAngularSpeed     0        [0,∞)
   SFFloat [in,out] disableLinearSpeed      0        [0,∞)
   SFFloat [in,out] disableTime             0        [0,∞)
   SFBool  [in,out] enabled                 TRUE
   SFFloat [in,out] errorCorrectionFactor   0        [0,1]
   SFVec3f [in,out] gravity                 0 -9.8 0
   SFInt32 [in,out] iterations              10       [0,∞)
   MFNode  [in,out] joints                  []       [X3DRigidJointNode]
   SFFloat [in,out] maxCorrectionSpeed      -1       [0,∞) or -1
   SFNode  [in,out] metadata                NULL     [X3DMetadataObject]
   SFBool  [in,out] preferAccuracy          FALSE
 }
 
Version:
$Revision: 1.14 $
Author:
Justin Couch