|
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 VRMLNBodyCollidableNodeType
Representation of X3DCollidableNode in terms of the rigid body physics component.
See the specification definition at http://www.xj3d.org/extensions/rigid_physics.html
This class is named NBodyCollidable because there is already the generic VRMLCollidableNodeType defined in Xj3D for representing user-collidable geometry with the avatar.
The X3D node definition is:
X3DNBodyCollidableNode : X3DChildNode, X3DBoundedObject {
SFNode [in,out] metadata NULL [X3DMetadataObject]
SFBool [in,out] enabled TRUE
SFVec3f [in,out] position 0 0 0 (-∞,∞)
SFRotation [in,out] rotation 0 0 1 0 [0,1]
SFVec3f [] bboxCenter 0 0 0 (-∞,∞)
SFVec3f [] bboxSize -1 -1 -1 [0,∞) or -1 -1 -1
}
| Method Summary | |
|---|---|
org.odejava.PlaceableGeom |
getODEGeometry()
Get the ODE object that represents the body to evaluate. |
float[] |
getRotation()
Get the current rotation component of the transform. |
float[] |
getTranslation()
Get the current translation component of the transform. |
boolean |
isEnabled()
Is this group enabled for use right now? |
void |
setEnabled(boolean state)
Set a new state for the enabled field |
void |
setRotation(float[] rot)
Set the rotation component of the of transform. |
void |
setTranslation(float[] tx)
Set the translation component of the of transform. |
void |
updateFromODE()
ODE computation has finished, so go update the field values and the rendering API structures with the final computed values. |
| Methods inherited from interface org.web3d.vrml.nodes.VRMLBoundedNodeType |
|---|
getBboxCenter, getBboxSize |
| Method Detail |
|---|
org.odejava.PlaceableGeom getODEGeometry()
void updateFromODE()
boolean isEnabled()
void setEnabled(boolean state)
state - The new enabled value
void setRotation(float[] rot)
throws InvalidFieldValueException
rot - The new rotation component
InvalidFieldValueException - The rotation was nullfloat[] getRotation()
void setTranslation(float[] tx)
throws InvalidFieldValueException
tx - The new translation component
InvalidFieldValueException - The translation was nullfloat[] getTranslation()
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||