| Package | Description |
|---|---|
| org.web3d.x3d.jsail.RigidBodyPhysics |
The Rigid Body Physics component describes how to model rigid bodies and their interactions
through the application of basic physics principles to effect motion.
|
| Modifier and Type | Method and Description |
|---|---|
RigidBodyObject |
RigidBodyObject.addComments(CommentsBlock newCommentsBlock)
Add CommentsBlock to contained commentsList.
|
RigidBodyObject |
RigidBodyObject.addComments(java.lang.String newComment)
Add comment as String to contained commentsList.
|
RigidBodyObject |
RigidBodyObject.addComments(java.lang.String[] newComments)
Add comments as String[] array to contained commentsList.
|
RigidBodyObject |
RigidBodyObject.addForces(SFVec3fObject newValue)
Add singleton SFVec3fObject value to MFVec3f forces field.
|
RigidBodyObject |
RigidBodyObject.addGeometry(X3DNode newValue)
Add single child node to existing array of geometry nodes (if any).
|
RigidBodyObject |
RigidBodyObject.addTorques(SFVec3fObject newValue)
Add singleton SFVec3fObject value to MFVec3f torques field.
|
RigidBodyObject |
RigidBodyObject.clearGeometry()
Utility method to clear MFNode value of geometry field.
|
RigidBodyObject |
RigidBodyObject.clearMassDensityModel()
Utility method to clear SFNode value of massDensityModel field.
|
RigidBodyObject |
RigidBodyObject.clearMetadata()
Utility method to clear SFNode value of metadata field.
|
RigidBodyObject |
RigidBodyObject.setAngularDampingFactor(float newValue)
Assign float value to inputOutput SFFloat field named angularDampingFactor.
|
RigidBodyObject |
RigidBodyObject.setAngularDampingFactor(SFFloatObject newValue)
Assign typed object value to SFFloat angularDampingFactor field, similar to
setAngularDampingFactor(float). |
RigidBodyObject |
RigidBodyObject.setAngularVelocity(float[] newValue)
Assign 3-tuple float array to inputOutput SFVec3f field named angularVelocity.
|
RigidBodyObject |
RigidBodyObject.setAngularVelocity(float x,
float y,
float z)
Assign values to SFVec3f angularVelocity field, similar to
setAngularVelocity(float[]). |
RigidBodyObject |
RigidBodyObject.setAngularVelocity(SFVec3fObject newValue)
Assign typed object value to SFVec3f angularVelocity field, similar to
setAngularVelocity(float[]). |
RigidBodyObject |
RigidBodyObject.setAutoDamp(boolean newValue)
Assign boolean value to inputOutput SFBool field named autoDamp.
|
RigidBodyObject |
RigidBodyObject.setAutoDamp(SFBoolObject newValue)
Assign typed object value to SFBool autoDamp field, similar to
setAutoDamp(boolean). |
RigidBodyObject |
RigidBodyObject.setAutoDisable(boolean newValue)
Assign boolean value to inputOutput SFBool field named autoDisable.
|
RigidBodyObject |
RigidBodyObject.setAutoDisable(SFBoolObject newValue)
Assign typed object value to SFBool autoDisable field, similar to
setAutoDisable(boolean). |
RigidBodyObject |
RigidBodyObject.setCenterOfMass(float[] newValue)
Assign 3-tuple float array to inputOutput SFVec3f field named centerOfMass.
|
RigidBodyObject |
RigidBodyObject.setCenterOfMass(float x,
float y,
float z)
Assign values to SFVec3f centerOfMass field, similar to
setCenterOfMass(float[]). |
RigidBodyObject |
RigidBodyObject.setCenterOfMass(SFVec3fObject newValue)
Assign typed object value to SFVec3f centerOfMass field, similar to
setCenterOfMass(float[]). |
RigidBodyObject |
RigidBodyObject.setCssClass(SFStringObject newValue)
Assign typed object value to SFString cssClass field, similar to
setCssClass(String). |
RigidBodyObject |
RigidBodyObject.setCssClass(java.lang.String newValue)
Assign String value to inputOutput SFString field named class.
|
RigidBodyObject |
RigidBodyObject.setDEF(SFStringObject newValue)
Assign typed object value to SFString DEF field, similar to
setDEF(String). |
RigidBodyObject |
RigidBodyObject.setDEF(java.lang.String newValue)
Assign String value to inputOutput SFString field named DEF.
|
RigidBodyObject |
RigidBodyObject.setDisableAngularSpeed(float newValue)
Assign float value to inputOutput SFFloat field named disableAngularSpeed.
|
RigidBodyObject |
RigidBodyObject.setDisableAngularSpeed(SFFloatObject newValue)
Assign typed object value to SFFloat disableAngularSpeed field, similar to
setDisableAngularSpeed(float). |
RigidBodyObject |
RigidBodyObject.setDisableLinearSpeed(float newValue)
Assign float value to inputOutput SFFloat field named disableLinearSpeed.
|
RigidBodyObject |
RigidBodyObject.setDisableLinearSpeed(SFFloatObject newValue)
Assign typed object value to SFFloat disableLinearSpeed field, similar to
setDisableLinearSpeed(float). |
RigidBodyObject |
RigidBodyObject.setDisableTime(double newValue)
Assign double value in seconds within allowed range of [0,infinity) to inputOutput SFTime field named disableTime.
|
RigidBodyObject |
RigidBodyObject.setDisableTime(SFTimeObject newValue)
Assign typed object value to SFTime disableTime field, similar to
setDisableTime(double). |
RigidBodyObject |
RigidBodyObject.setEnabled(boolean newValue)
Assign boolean value to inputOutput SFBool field named enabled.
|
RigidBodyObject |
RigidBodyObject.setEnabled(SFBoolObject newValue)
Assign typed object value to SFBool enabled field, similar to
setEnabled(boolean). |
RigidBodyObject |
RigidBodyObject.setFiniteRotationAxis(float[] newValue)
Assign 3-tuple float array unit axis, angle (in radians) to inputOutput SFVec3f field named finiteRotationAxis.
|
RigidBodyObject |
RigidBodyObject.setFiniteRotationAxis(float x,
float y,
float z)
Assign values to SFVec3f finiteRotationAxis field, similar to
setFiniteRotationAxis(float[]). |
RigidBodyObject |
RigidBodyObject.setFiniteRotationAxis(SFVec3fObject newValue)
Assign typed object value to SFVec3f finiteRotationAxis field, similar to
setFiniteRotationAxis(float[]). |
RigidBodyObject |
RigidBodyObject.setFixed(boolean newValue)
Assign boolean value to inputOutput SFBool field named fixed.
|
RigidBodyObject |
RigidBodyObject.setFixed(SFBoolObject newValue)
Assign typed object value to SFBool fixed field, similar to
setFixed(boolean). |
RigidBodyObject |
RigidBodyObject.setForces(float[] newValue)
Assign 3-tuple float array to inputOutput MFVec3f field named forces.
|
RigidBodyObject |
RigidBodyObject.setForces(MFVec3fObject newValue)
Assign typed object value to MFVec3f forces field, similar to
setForces(float[]). |
RigidBodyObject |
RigidBodyObject.setGeometry(java.util.ArrayList<X3DNBodyCollidableNode> newValue)
Assign ArrayList value of MFNode geometry field, similar to
setGeometry(X3DNode[]). |
RigidBodyObject |
RigidBodyObject.setGeometry(X3DConcreteNode newValue)
Utility method to set single SFNode as RigidBodyObject geometry.
|
RigidBodyObject |
RigidBodyObject.setGeometry(X3DNode[] newValue)
Assign X3DNBodyCollidableNode array (using an array consisting of properly typed nodes or ProtoInstanceObjects) to inputOutput MFNode field geometry.
|
RigidBodyObject |
RigidBodyObject.setInertia(float[] newValue)
Assign float array to inputOutput SFMatrix3f field named inertia.
|
RigidBodyObject |
RigidBodyObject.setInertia(SFMatrix3fObject newValue)
Assign typed object value to SFMatrix3f inertia field, similar to
setInertia(float[]). |
RigidBodyObject |
RigidBodyObject.setIS(ISObject newValue)
Assign field named IS for establishing IS/connect field connections between ProtoInterface fields and internal ProtoBody nodes.
|
RigidBodyObject |
RigidBodyObject.setLinearDampingFactor(float newValue)
Assign float value to inputOutput SFFloat field named linearDampingFactor.
|
RigidBodyObject |
RigidBodyObject.setLinearDampingFactor(SFFloatObject newValue)
Assign typed object value to SFFloat linearDampingFactor field, similar to
setLinearDampingFactor(float). |
RigidBodyObject |
RigidBodyObject.setLinearVelocity(float[] newValue)
Assign 3-tuple float array to inputOutput SFVec3f field named linearVelocity.
|
RigidBodyObject |
RigidBodyObject.setLinearVelocity(float x,
float y,
float z)
Assign values to SFVec3f linearVelocity field, similar to
setLinearVelocity(float[]). |
RigidBodyObject |
RigidBodyObject.setLinearVelocity(SFVec3fObject newValue)
Assign typed object value to SFVec3f linearVelocity field, similar to
setLinearVelocity(float[]). |
RigidBodyObject |
RigidBodyObject.setMass(float newValue)
Assign float value to inputOutput SFFloat field named mass.
|
RigidBodyObject |
RigidBodyObject.setMass(SFFloatObject newValue)
Assign typed object value to SFFloat mass field, similar to
setMass(float). |
RigidBodyObject |
RigidBodyObject.setMassDensityModel(ProtoInstanceObject newValue)
Assign ProtoInstance (using a properly typed node) to inputOutput SFNode field massDensityModel.
|
RigidBodyObject |
RigidBodyObject.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 (!
|
RigidBodyObject |
RigidBodyObject.setMetadata(ProtoInstanceObject newValue)
Assign ProtoInstance (using a properly typed node) to inputOutput SFNode field metadata.
|
RigidBodyObject |
RigidBodyObject.setMetadata(X3DMetadataObject newValue)
Assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
|
RigidBodyObject |
RigidBodyObject.setOrientation(float[] newValue)
Assign 4-tuple float array unit axis, angle (in radians) to inputOutput SFRotation field named orientation.
|
RigidBodyObject |
RigidBodyObject.setOrientation(float x,
float y,
float z,
float angleRadians)
Assign values to SFRotation orientation field, similar to
setOrientation(float[]). |
RigidBodyObject |
RigidBodyObject.setOrientation(SFRotationObject newValue)
Assign typed object value to SFRotation orientation field, similar to
setOrientation(float[]). |
RigidBodyObject |
RigidBodyObject.setPosition(float[] newValue)
Assign 3-tuple float array to inputOutput SFVec3f field named position.
|
RigidBodyObject |
RigidBodyObject.setPosition(float x,
float y,
float z)
Assign values to SFVec3f position field, similar to
setPosition(float[]). |
RigidBodyObject |
RigidBodyObject.setPosition(SFVec3fObject newValue)
Assign typed object value to SFVec3f position field, similar to
setPosition(float[]). |
RigidBodyObject |
RigidBodyObject.setTorques(float[] newValue)
Assign 3-tuple float array to inputOutput MFVec3f field named torques.
|
RigidBodyObject |
RigidBodyObject.setTorques(MFVec3fObject newValue)
Assign typed object value to MFVec3f torques field, similar to
setTorques(float[]). |
RigidBodyObject |
RigidBodyObject.setUSE(RigidBodyObject DEFnode)
Assign a USE reference to another DEF node of same node type, similar to
setUSE(String). |
RigidBodyObject |
RigidBodyObject.setUSE(SFStringObject newValue)
Assign typed object value to SFString USE field, similar to
setUSE(String). |
RigidBodyObject |
RigidBodyObject.setUSE(java.lang.String newValue)
Assign String value to inputOutput SFString field named USE.
|
RigidBodyObject |
RigidBodyObject.setUseFiniteRotation(boolean newValue)
Assign boolean value unit axis, angle (in radians) to inputOutput SFBool field named useFiniteRotation.
|
RigidBodyObject |
RigidBodyObject.setUseFiniteRotation(SFBoolObject newValue)
Assign typed object value to SFBool useFiniteRotation field, similar to
setUseFiniteRotation(boolean). |
RigidBodyObject |
RigidBodyObject.setUseGlobalGravity(boolean newValue)
Assign boolean value to inputOutput SFBool field named useGlobalGravity.
|
RigidBodyObject |
RigidBodyObject.setUseGlobalGravity(SFBoolObject newValue)
Assign typed object value to SFBool useGlobalGravity field, similar to
setUseGlobalGravity(boolean). |
| Modifier and Type | Method and Description |
|---|---|
RigidBodyCollectionObject |
RigidBodyCollectionObject.addBodies(RigidBodyObject newValue)
Add single child node to existing array of bodies nodes (if any).
|
RigidBodyObject |
RigidBodyObject.setUSE(RigidBodyObject DEFnode)
Assign a USE reference to another DEF node of same node type, similar to
setUSE(String). |
Copyright ©2005-2017 Web3D Consortium under an open-source license, free for any use. Feedback is welcome.