Class OGLRigidBodyCollection
java.lang.Object
org.web3d.vrml.renderer.common.nodes.AbstractNode
org.web3d.vrml.renderer.common.nodes.rigidphysics.BaseRigidBodyCollection
org.web3d.vrml.renderer.ogl.nodes.rigidphysics.OGLRigidBodyCollection
- All Implemented Interfaces:
VRMLNode,FrameStateListener,VRMLChildNodeType,VRMLNodeType,VRMLRigidBodyGroupNodeType,VRMLWorldRootChildNodeType,OGLVRMLNode
Implementation of a RigidBodyCollection.
- Version:
- $Revision: 1.1 $
- Author:
- Justin Couch
-
Field Summary
Fields inherited from class org.web3d.vrml.renderer.common.nodes.rigidphysics.BaseRigidBodyCollection
BODY_NODE_MSG, BODY_PROTO_MSG, COLL_NODE_MSG, COLL_PROTO_MSG, CONTACT_NODE_MSG, CONTACT_PROTO_MSG, DIS_ANG_VEL_RANGE_MSG, DIS_LIN_VEL_RANGE_MSG, FIELD_AUTO_DISABLE, FIELD_BODIES, FIELD_COLLIDER, FIELD_CONSTANT_FORCE_MIX, FIELD_CONTACT_SURFACE_THICKNESS, FIELD_DISABLE_ANGULAR_SPEED, FIELD_DISABLE_LINEAR_SPEED, FIELD_DISABLE_TIME, FIELD_ENABLED, FIELD_ERROR_CORRECTION, FIELD_GRAVITY, FIELD_ITERATIONS, FIELD_JOINTS, FIELD_MAX_CORRECTION_SPEED, FIELD_PREFER_ACCURACY, FIELD_SET_CONTACTS, INVALID_BODY_NODE_MSG, INVALID_JOINT_NODE_MSG, LAST_COLLECTION_INDEX, NEG_CFM_MSG, NEG_ERR_CORR_MSG, NEG_ITERATIONS_MSG, NEG_SURFACE_MSG, numBodies, numJoints, pCollider, vfAutoDisable, vfBodies, vfCollider, vfConstantForceMix, vfContactSurfaceThickness, vfDisableAngularSpeed, vfDisableLinearSpeed, vfDisableTime, vfEnabled, vfErrorCorrection, vfGravity, vfIterations, vfJoints, vfMaxCorrectionSpeed, vfPreferAccuracy, vfSetContactsFields inherited from class org.web3d.vrml.renderer.common.nodes.AbstractNode
errorReporter, FIELD_METADATA, fieldLocalData, hasChanged, inSetup, isDEF, isStatic, LAST_NODE_INDEX, layerIds, nodeName, pMetadata, refCounts, removedLayerIds, stateManager, STATIC_SCENE_GRAPH, vfMetadata, vrmlMajorVersion, vrmlMinorVersion -
Constructor Summary
ConstructorsConstructorDescriptionInitialise the time dependent node and it's fields that are held locally.Construct a new instance of this node based on the details from the given node. -
Method Summary
Modifier and TypeMethodDescriptionorg.j3d.aviatrix3d.SceneGraphObjectGet the OpenGL scene graph object representation of this node.Methods inherited from class org.web3d.vrml.renderer.common.nodes.rigidphysics.BaseRigidBodyCollection
delete, evaluateModel, getBodies, getFieldDeclaration, getFieldIndex, getFieldValue, getGravity, getJoints, getNodeFieldIndices, getNumFields, getPrimaryType, isEnabled, numBodies, numJoints, processInputContacts, sendRoute, setBodies, setCollider, setGravity, setJoints, setTimestep, setupFinished, setValue, setValue, setValue, setValue, setValue, setValue, updatePostSimulation, updateRefCountMethods inherited from class org.web3d.vrml.renderer.common.nodes.AbstractNode
addNodeListener, allEventsComplete, checkNodeType, checkSecondaryType, checkSecondaryType, clearRemovedLayerIds, fireFieldChanged, getLayerIds, getMetadataObject, getRefCount, getRemovedLayerIds, getSecondaryType, getUserData, getVRMLNodeName, hasFieldChanged, isDEF, isSetupFinished, notifyExternProtoLoaded, removeNodeListener, setDEF, setErrorReporter, setFrameStateManager, setMetadataObject, setUserData, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setVersion, throwInitOnlyWriteException, throwInputOnlyWriteException, throwInvalidNodeException, throwInvalidProtoException, throwOutputOnlyWriteException, updateRefsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.web3d.vrml.nodes.FrameStateListener
allEventsCompleteMethods inherited from interface org.web3d.vrml.lang.VRMLNode
getFieldDeclaration, getFieldIndex, getNodeFieldIndices, getNumFields, getPrimaryType, getSecondaryType, getUserData, getVRMLNodeName, isDEF, setErrorReporter, setUserData, setVersionMethods inherited from interface org.web3d.vrml.nodes.VRMLNodeType
addNodeListener, clearRemovedLayerIds, getFieldValue, getLayerIds, getMetadataObject, getRefCount, getRemovedLayerIds, hasFieldChanged, isSetupFinished, notifyExternProtoLoaded, removeNodeListener, sendRoute, setDEF, setFrameStateManager, setMetadataObject, setupFinished, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, updateRefCount
-
Constructor Details
-
OGLRigidBodyCollection
public OGLRigidBodyCollection()Initialise the time dependent node and it's fields that are held locally. -
OGLRigidBodyCollection
Construct a new instance of this node based on the details from the given node. If the node is not the same type, an exception will be thrown.- Parameters:
node- The node to copy- Throws:
IllegalArgumentException- The node is not the same type
-
-
Method Details
-
getSceneGraphObject
public org.j3d.aviatrix3d.SceneGraphObject getSceneGraphObject()Get the OpenGL scene graph object representation of this node. This will need to be cast to the appropriate parent type when being used. Default implementation returns null.- Specified by:
getSceneGraphObjectin interfaceOGLVRMLNode- Returns:
- The OpenGL representation.
-