|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VRMLRigidBodyGroupNodeType
Representation of the top-level collection of RigidBody objects in Xj3D.
A collection of rigid bodies is a collective of nodes that are evaluated as a single set of conditions that need to be solved.
| Method Summary | |
|---|---|
void |
delete()
This node is about to be deleted due to a change in loaded world. |
void |
evaluateModel()
Instruct the group node to evaluate itself right now based on the given time delta from the last time this was evaluated. |
VRMLNodeType[] |
getBodies()
Get the body list, provides a live reference not a copy. |
void |
getGravity(float[] gravity)
Get the current gravity vector applying to this collection. |
VRMLNodeType[] |
getJoints()
Get the joint list, provides a live reference not a copy. |
boolean |
isEnabled()
Is this group enabled for use right now? |
int |
numBodies()
Get the number of valid bodies that this collection has |
int |
numJoints()
Get the number of valid joints that this collection has |
void |
processInputContacts()
Go through the list of input contacts, process them and send them off to ODE. |
void |
setBodies(VRMLNodeType[] bodies,
int numValid)
Set the collection of RigidBody nodes that this collection should manage. |
void |
setGravity(float[] gravity)
Set the global gravity direction for this collection. |
void |
setJoints(VRMLNodeType[] joints,
int numValid)
Set the collection of Joint nodes that this collection should manage. |
void |
setTimestep(float deltaT)
Adjust the model's timestep to the new value (in seconds). |
void |
updatePostSimulation()
Update everything from ODE, back into the node fields. |
| Methods 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 |
| 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 |
|---|
void processInputContacts()
void setTimestep(float deltaT)
deltaT - The time change in secondsvoid evaluateModel()
void updatePostSimulation()
void delete()
boolean isEnabled()
void setGravity(float[] gravity)
gravity - An array of 3 values for the gravity vectorvoid getGravity(float[] gravity)
gravity - An array to copy the values intoint numJoints()
VRMLNodeType[] getJoints()
void setJoints(VRMLNodeType[] joints,
int numValid)
joints - Array of new joint node instances to usenumValid - The number of valid values to get from the array
InvalidFieldValueException - one of the provided nodes is not a
X3DRigidJointNode instanceint numBodies()
VRMLNodeType[] getBodies()
void setBodies(VRMLNodeType[] bodies,
int numValid)
bodies - Array of new body node instances to usenumValid - The number of valid values to get from the array
InvalidFieldValueException - one of the provided nodes is not a
VRMLRigitBodyNodeType instance
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||