|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Representation of collection of collidable objects that can be evaluated as a single group. See the specification definition at http://www.xj3d.org/extensions/rigid_physics.html
A collection is the root node of a set of objects that can be interacted. This node does not have an equivalent X3D abstract node type.
In the interest of optimisations, the group can be told whether or not one or more sensors are interested in knowing the output of this node or not. If they are not, then there is no need to bring any of the results back up into the java world before pushing the values on into the rigid body model.
| Method Summary | |
void |
applyContacts()
Apply the contacts right now. |
void |
delete()
This node is about to be deleted due to a change in loaded world. |
void |
evaluateCollisions()
Tell the group to evaluate its contents now. |
BulkContact |
getContacts()
Fetch the most recent set of contacts that have been evaluated for this space. |
boolean |
isEnabled()
Is this group enabled for use right now? |
int |
numContacts()
Fetch the number of contacts that were generated during the last evaluation. |
void |
setOwningWorld(World wld)
Set the owning world for this collision space. |
| 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 |
| Method Detail |
public void setOwningWorld(World wld)
wld - The world instance we're using.public void evaluateCollisions()
public void delete()
public int numContacts()
getContacts().
public BulkContact getContacts()
public void applyContacts()
public boolean isEnabled()
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||