Xj3D VRML/X3D Code API

org.web3d.vrml.nodes
Interface VRMLNBodySpaceNodeType

All Superinterfaces:
FrameStateListener, VRMLBoundedNodeType, VRMLChildNodeType, VRMLNode, VRMLNodeType

public interface VRMLNBodySpaceNodeType
extends VRMLNodeType, VRMLBoundedNodeType

Representation of single space that contains more spaces and/or explicity local geometry for comparison. component.

See the specification definition at http://www.xj3d.org/extensions/rigid_physics.html

A space may contain other, nested spaces. Dividing geometry up by space can make for more efficient algorithms for determining inter-object collisions. It may also contain geometry from the X3DNBodyCollidable nodes that can be directly tested against this space, or children of this space.

The X3D definition of this abstract type is:

 X3DNBodyCollidableNode : X3DChildNode, X3DBoundedObject {
   SFNode     [in,out] metadata       NULL      [X3DMetadataObject]
   SFRotation [in,out] rotation       0 0 1 0   [0,1]
   SFVec3f    [in,out] translation    0 0 0     (-∞,∞)
   SFVec3f    []       bboxCenter     0 0 0     (-∞,∞)
   SFVec3f    []       bboxSize       -1 -1 -1  [0,∞) or -1 -1 -1
 }
 

Version:
$Revision: 1.1 $
Author:
Justin Couch

Method Summary
 Space getODESpace()
          Get the ODE object that represents the body to evaluate.
 boolean isEnabled()
          Is this group enabled for use right now?
 void setParentODESpace(Space parent)
          Set the parent space that this space belongs to.
 
Methods inherited from interface org.web3d.vrml.nodes.VRMLNodeType
addNodeListener, getFieldValue, getMetadataObject, getRefCount, hasFieldChanged, isSetupFinished, notifyExternProtoLoaded, removeNodeListener, sendRoute, setDEF, setFrameStateManager, setMetadataObject, setupFinished, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, updateRefCount
 
Methods inherited from interface org.web3d.vrml.lang.VRMLNode
getFieldDeclaration, getFieldIndex, getNodeFieldIndices, getNumFields, getPrimaryType, getSecondaryType, getUserData, getVRMLNodeName, isDEF, setErrorReporter, setUserData, setVersion
 
Methods inherited from interface org.web3d.vrml.nodes.FrameStateListener
allEventsComplete
 
Methods inherited from interface org.web3d.vrml.nodes.VRMLBoundedNodeType
getBboxCenter, getBboxSize
 

Method Detail

getODESpace

public Space getODESpace()
Get the ODE object that represents the body to evaluate.

Returns:
The body object representing this node

setParentODESpace

public void setParentODESpace(Space parent)
Set the parent space that this space belongs to. A null value clears the world and indicates the physics model or space is no longer in use by it's parent space (eg deletes it).

Parameters:
parent - The new parent of this object, or null

isEnabled

public boolean isEnabled()
Is this group enabled for use right now?

Returns:
true if this is enabled

Xj3D VRML/X3D Code API

Copyright © 2001 - 2005 Web3D Consortium