public interface RigidBody extends X3DNode
| Modifier and Type | Method and Description |
|---|---|
void |
addGeometry(X3DNode[] newValue)
Add array of child geometry nodes to array of existing nodes (if any).
|
float |
getAngularDampingFactor()
Provide float value from inputOutput SFFloat field named angularDampingFactor.
|
float[] |
getAngularVelocity()
Provide array of 3-tuple float results from inputOutput SFVec3f field named angularVelocity.
|
boolean |
getAutoDamp()
Provide boolean value from inputOutput SFBool field named autoDamp.
|
boolean |
getAutoDisable()
Provide boolean value from inputOutput SFBool field named autoDisable.
|
float[] |
getCenterOfMass()
Provide array of 3-tuple float results from inputOutput SFVec3f field named centerOfMass.
|
float |
getDisableAngularSpeed()
Provide float value from inputOutput SFFloat field named disableAngularSpeed.
|
float |
getDisableLinearSpeed()
Provide float value from inputOutput SFFloat field named disableLinearSpeed.
|
double |
getDisableTime()
Provide double value in seconds within allowed range of [0,infinity) from inputOutput SFTime field named disableTime.
|
boolean |
getEnabled()
Provide boolean value from inputOutput SFBool field named enabled.
|
float[] |
getFiniteRotationAxis()
Provide array of 3-tuple float results unit axis, angle (in radians) from inputOutput SFVec3f field named finiteRotationAxis.
|
boolean |
getFixed()
Provide boolean value from inputOutput SFBool field named fixed.
|
float[] |
getForces()
Provide array of 3-tuple float results from inputOutput MFVec3f field named forces.
|
X3DNode[] |
getGeometry()
Provide array of X3DNode results (using an array consisting of properly typed nodes or ProtoInstanceObjects) from inputOutput MFNode field geometry.
|
float[] |
getInertia()
Provide array of float results from inputOutput SFMatrix3f field named inertia.
|
float |
getLinearDampingFactor()
Provide float value from inputOutput SFFloat field named linearDampingFactor.
|
float[] |
getLinearVelocity()
Provide array of 3-tuple float results from inputOutput SFVec3f field named linearVelocity.
|
float |
getMass()
Provide float value from inputOutput SFFloat field named mass.
|
X3DNode |
getMassDensityModel()
Provide X3DNode instance (using a properly typed node) with acceptable node types limited to Sphere|Box|Cone, from inputOutput SFNode field massDensityModel.
|
X3DMetadataObject |
getMetadata()
Provide X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.
|
float[] |
getOrientation()
Provide array of 4-tuple float results unit axis, angle (in radians) from inputOutput SFRotation field named orientation.
|
float[] |
getPosition()
Provide array of 3-tuple float results from inputOutput SFVec3f field named position.
|
float[] |
getTorques()
Provide array of 3-tuple float results from inputOutput MFVec3f field named torques.
|
boolean |
getUseFiniteRotation()
Provide boolean value unit axis, angle (in radians) from inputOutput SFBool field named useFiniteRotation.
|
boolean |
getUseGlobalGravity()
Provide boolean value from inputOutput SFBool field named useGlobalGravity.
|
RigidBody |
setAngularDampingFactor(float newValue)
Assign float value to inputOutput SFFloat field named angularDampingFactor.
|
RigidBody |
setAngularVelocity(float[] newValue)
Assign 3-tuple float array to inputOutput SFVec3f field named angularVelocity.
|
RigidBody |
setAutoDamp(boolean newValue)
Assign boolean value to inputOutput SFBool field named autoDamp.
|
RigidBody |
setAutoDisable(boolean newValue)
Assign boolean value to inputOutput SFBool field named autoDisable.
|
RigidBody |
setCenterOfMass(float[] newValue)
Assign 3-tuple float array to inputOutput SFVec3f field named centerOfMass.
|
RigidBody |
setCssClass(java.lang.String newValue)
Assign String value to inputOutput SFString field named class.
|
RigidBody |
setDEF(java.lang.String newValue)
Assign String value to inputOutput SFString field named DEF.
|
RigidBody |
setDisableAngularSpeed(float newValue)
Assign float value to inputOutput SFFloat field named disableAngularSpeed.
|
RigidBody |
setDisableLinearSpeed(float newValue)
Assign float value to inputOutput SFFloat field named disableLinearSpeed.
|
RigidBody |
setDisableTime(double newValue)
Assign double value in seconds within allowed range of [0,infinity) to inputOutput SFTime field named disableTime.
|
RigidBody |
setEnabled(boolean newValue)
Assign boolean value to inputOutput SFBool field named enabled.
|
RigidBody |
setFiniteRotationAxis(float[] newValue)
Assign 3-tuple float array unit axis, angle (in radians) to inputOutput SFVec3f field named finiteRotationAxis.
|
RigidBody |
setFixed(boolean newValue)
Assign boolean value to inputOutput SFBool field named fixed.
|
RigidBody |
setForces(float[] newValue)
Assign 3-tuple float array to inputOutput MFVec3f field named forces.
|
void |
setGeometry(X3DNode newValue)
Set single child geometry node, replacing prior array of existing nodes (if any).
|
RigidBody |
setGeometry(X3DNode[] newValue)
Assign X3DNode array (using an array consisting of properly typed nodes or ProtoInstanceObjects) to inputOutput MFNode field geometry.
|
RigidBody |
setInertia(float[] newValue)
Assign float array to inputOutput SFMatrix3f field named inertia.
|
RigidBody |
setLinearDampingFactor(float newValue)
Assign float value to inputOutput SFFloat field named linearDampingFactor.
|
RigidBody |
setLinearVelocity(float[] newValue)
Assign 3-tuple float array to inputOutput SFVec3f field named linearVelocity.
|
RigidBody |
setMass(float newValue)
Assign float value to inputOutput SFFloat field named mass.
|
RigidBody |
setMassDensityModel(X3DNode newValue)
Assign X3DNode instance (using a properly typed node) with acceptable node types limited to Sphere|Box|Cone, to inputOutput SFNode field massDensityModel.
// newValueInstanceAcceptableNodeTypesTest checks are needed for methods that override/subset X3DNode interfaces #1
boolean isNodeTypeAllowed =
(((X3DConcreteNode)newValue) instanceof org.web3d.x3d.jsail.Geometry3D.SphereObject) ||
(((X3DConcreteNode)newValue) instanceof org.web3d.x3d.jsail.Geometry3D.BoxObject) ||
(((X3DConcreteNode)newValue) instanceof org.web3d.x3d.jsail.Geometry3D.ConeObject);
if (!
|
RigidBody |
setMetadata(X3DMetadataObject newValue)
Assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
|
RigidBody |
setOrientation(float[] newValue)
Assign 4-tuple float array unit axis, angle (in radians) to inputOutput SFRotation field named orientation.
|
RigidBody |
setPosition(float[] newValue)
Assign 3-tuple float array to inputOutput SFVec3f field named position.
|
RigidBody |
setTorques(float[] newValue)
Assign 3-tuple float array to inputOutput MFVec3f field named torques.
|
RigidBody |
setUSE(java.lang.String newValue)
Assign String value to inputOutput SFString field named USE.
|
RigidBody |
setUseFiniteRotation(boolean newValue)
Assign boolean value unit axis, angle (in radians) to inputOutput SFBool field named useFiniteRotation.
|
RigidBody |
setUseGlobalGravity(boolean newValue)
Assign boolean value to inputOutput SFBool field named useGlobalGravity.
|
float getAngularDampingFactor()
RigidBody setAngularDampingFactor(float newValue)
newValue - is new value for the angularDampingFactor field.RigidBody - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).float[] getAngularVelocity()
RigidBody setAngularVelocity(float[] newValue)
newValue - is new value for the angularVelocity field.RigidBody - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).boolean getAutoDamp()
RigidBody setAutoDamp(boolean newValue)
newValue - is new value for the autoDamp field.RigidBody - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).boolean getAutoDisable()
RigidBody setAutoDisable(boolean newValue)
newValue - is new value for the autoDisable field.RigidBody - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).float[] getCenterOfMass()
RigidBody setCenterOfMass(float[] newValue)
newValue - is new value for the centerOfMass field.RigidBody - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).float getDisableAngularSpeed()
RigidBody setDisableAngularSpeed(float newValue)
newValue - is new value for the disableAngularSpeed field.RigidBody - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).float getDisableLinearSpeed()
RigidBody setDisableLinearSpeed(float newValue)
newValue - is new value for the disableLinearSpeed field.RigidBody - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).double getDisableTime()
RigidBody setDisableTime(double newValue)
newValue - is new value for the disableTime field.RigidBody - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).boolean getEnabled()
RigidBody setEnabled(boolean newValue)
newValue - is new value for the enabled field.RigidBody - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).float[] getFiniteRotationAxis()
RigidBody setFiniteRotationAxis(float[] newValue)
newValue - is new value for the finiteRotationAxis field.RigidBody - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).boolean getFixed()
RigidBody setFixed(boolean newValue)
newValue - is new value for the fixed field.RigidBody - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).float[] getForces()
RigidBody setForces(float[] newValue)
newValue - is new value for the forces field.RigidBody - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).X3DNode[] getGeometry()
X3DNBodyCollidableNodeRigidBody setGeometry(X3DNode[] newValue)
newValue - is new value for the geometry field.RigidBody - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).void addGeometry(X3DNode[] newValue)
newValue - is new value array to be appended the geometry field.void setGeometry(X3DNode newValue)
newValue - is new node for the geometry fieldfloat[] getInertia()
RigidBody setInertia(float[] newValue)
newValue - is new value for the inertia field.RigidBody - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).float getLinearDampingFactor()
RigidBody setLinearDampingFactor(float newValue)
newValue - is new value for the linearDampingFactor field.RigidBody - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).float[] getLinearVelocity()
RigidBody setLinearVelocity(float[] newValue)
newValue - is new value for the linearVelocity field.RigidBody - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).float getMass()
RigidBody setMass(float newValue)
newValue - is new value for the mass field.RigidBody - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).X3DNode getMassDensityModel()
RigidBody setMassDensityModel(X3DNode newValue)
newValue - is new value for the massDensityModel field.RigidBody - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).X3DMetadataObject getMetadata()
getMetadata in interface X3DNodeRigidBody setMetadata(X3DMetadataObject newValue)
setMetadata in interface X3DNodenewValue - is new value for the metadata field.RigidBody - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).float[] getOrientation()
RigidBody setOrientation(float[] newValue)
newValue - is new value for the orientation field.RigidBody - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).float[] getPosition()
RigidBody setPosition(float[] newValue)
newValue - is new value for the position field.RigidBody - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).float[] getTorques()
RigidBody setTorques(float[] newValue)
newValue - is new value for the torques field.RigidBody - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).boolean getUseFiniteRotation()
RigidBody setUseFiniteRotation(boolean newValue)
newValue - is new value for the useFiniteRotation field.RigidBody - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).boolean getUseGlobalGravity()
RigidBody setUseGlobalGravity(boolean newValue)
newValue - is new value for the useGlobalGravity field.RigidBody - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).RigidBody setDEF(java.lang.String newValue)
RigidBody setUSE(java.lang.String newValue)
USE node is still an independent object, with the USE value matching the DEF value in the preceding object.
setUSE() method on this node resets all other fields to their default values (except for containerField) and also releases all child nodes.RigidBody setCssClass(java.lang.String newValue)
setCssClass in interface X3DNodenewValue - is new value for the class field.RigidBody - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).Copyright ©2005-2017 Web3D Consortium under an open-source license, free for any use. Feedback is welcome.