Xj3D 2.0 VRML/X3D Code API

org.web3d.vrml.nodes
Interface VRMLNBodySpaceNodeType

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

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
 org.odejava.Space getODESpace()
          Get the ODE object that represents the body to evaluate.
 boolean isEnabled()
          Is this group enabled for use right now?
 void setParentODESpace(org.odejava.Space parent)
          Set the parent space that this space belongs to.
 
Methods inherited from interface org.web3d.vrml.nodes.VRMLBoundedNodeType
getBboxCenter, getBboxSize
 

Method Detail

getODESpace

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

Returns:
The body object representing this node

setParentODESpace

void setParentODESpace(org.odejava.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

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

Returns:
true if this is enabled

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium