public interface CollisionCollection extends X3DNode
| Modifier and Type | Method and Description |
|---|---|
void |
addCollidables(X3DNode[] newValue)
Add array of child collidables nodes to array of existing nodes (if any).
|
java.lang.String[] |
getAppliedParameters()
Provide array of String enumeration results ['"BOUNCE"'|'"USER_FRICTION"'|'"FRICTION_COEFFICIENT-2"'|'"ERROR_REDUCTION"'|'"CONSTANT_FORCE"'|'"SPEED-1"'|'"SPEED-2"'|'"SLIP-1"'|'"SLIP-2"'|'"etc."'] from inputOutput MFString field named appliedParameters.
|
float |
getBounce()
Provide float value within allowed range of [0,1] from inputOutput SFFloat field named bounce.
|
X3DNode[] |
getCollidables()
Provide array of X3DNode results (using an array consisting of properly typed nodes or ProtoInstanceObjects) with acceptable node types limited to X3DNBodyCollisionSpaceNode|X3DNBodyCollidableNode, from inputOutput MFNode field collidables.
|
boolean |
getEnabled()
Provide boolean value from inputOutput SFBool field named enabled.
|
float[] |
getFrictionCoefficients()
Provide array of 2-tuple float results within allowed range of [0,infinity) from inputOutput SFVec2f field named frictionCoefficients.
|
X3DMetadataObject |
getMetadata()
Provide X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.
|
float |
getMinBounceSpeed()
Provide float value within allowed range of [0,infinity) from inputOutput SFFloat field named minBounceSpeed.
|
float[] |
getSlipFactors()
Provide array of 2-tuple float results from inputOutput SFVec2f field named slipFactors.
|
float |
getSoftnessConstantForceMix()
Provide float value within allowed range of [0,1] from inputOutput SFFloat field named softnessConstantForceMix.
|
float |
getSoftnessErrorCorrection()
Provide float value within allowed range of [0,1] from inputOutput SFFloat field named softnessErrorCorrection.
|
float[] |
getSurfaceSpeed()
Provide array of 2-tuple float results from inputOutput SFVec2f field named surfaceSpeed.
|
CollisionCollection |
setAppliedParameters(java.lang.String[] newValue)
Assign String enumeration array (""BOUNCE""|""USER_FRICTION""|""FRICTION_COEFFICIENT-2""|""ERROR_REDUCTION""|""CONSTANT_FORCE""|""SPEED-1""|""SPEED-2""|""SLIP-1""|""SLIP-2"") ['"BOUNCE"'|'"USER_FRICTION"'|'"FRICTION_COEFFICIENT-2"'|'"ERROR_REDUCTION"'|'"CONSTANT_FORCE"'|'"SPEED-1"'|'"SPEED-2"'|'"SLIP-1"'|'"SLIP-2"'|'"etc."'] to inputOutput MFString field named appliedParameters.
|
CollisionCollection |
setBounce(float newValue)
Assign float value within allowed range of [0,1] to inputOutput SFFloat field named bounce.
|
void |
setCollidables(X3DNode newValue)
Set single child collidables node, replacing prior array of existing nodes (if any).
|
CollisionCollection |
setCollidables(X3DNode[] newValue)
Assign X3DNode array (using an array consisting of properly typed nodes or ProtoInstanceObjects) with acceptable node types limited to X3DNBodyCollisionSpaceNode|X3DNBodyCollidableNode, to inputOutput MFNode field collidables.
// newValueInstanceAcceptableNodeTypesTest checks are needed for methods that override/subset X3DNode interfaces #1
boolean isNodeTypeAllowed =
(((X3DConcreteNode)newValue) instanceof org.web3d.x3d.sai.RigidBodyPhysics.X3DNBodyCollisionSpaceNode) ||
(((X3DConcreteNode)newValue) instanceof org.web3d.x3d.sai.RigidBodyPhysics.X3DNBodyCollidableNode);
if (!
|
CollisionCollection |
setCssClass(java.lang.String newValue)
Assign String value to inputOutput SFString field named class.
|
CollisionCollection |
setDEF(java.lang.String newValue)
Assign String value to inputOutput SFString field named DEF.
|
CollisionCollection |
setEnabled(boolean newValue)
Assign boolean value to inputOutput SFBool field named enabled.
|
CollisionCollection |
setFrictionCoefficients(float[] newValue)
Assign 2-tuple float array within allowed range of [0,infinity) to inputOutput SFVec2f field named frictionCoefficients.
|
CollisionCollection |
setMetadata(X3DMetadataObject newValue)
Assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
|
CollisionCollection |
setMinBounceSpeed(float newValue)
Assign float value within allowed range of [0,infinity) to inputOutput SFFloat field named minBounceSpeed.
|
CollisionCollection |
setSlipFactors(float[] newValue)
Assign 2-tuple float array to inputOutput SFVec2f field named slipFactors.
|
CollisionCollection |
setSoftnessConstantForceMix(float newValue)
Assign float value within allowed range of [0,1] to inputOutput SFFloat field named softnessConstantForceMix.
|
CollisionCollection |
setSoftnessErrorCorrection(float newValue)
Assign float value within allowed range of [0,1] to inputOutput SFFloat field named softnessErrorCorrection.
|
CollisionCollection |
setSurfaceSpeed(float[] newValue)
Assign 2-tuple float array to inputOutput SFVec2f field named surfaceSpeed.
|
CollisionCollection |
setUSE(java.lang.String newValue)
Assign String value to inputOutput SFString field named USE.
|
java.lang.String[] getAppliedParameters()
CollisionCollection setAppliedParameters(java.lang.String[] newValue)
newValue - is new value for the appliedParameters field.CollisionCollection - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).float getBounce()
CollisionCollection setBounce(float newValue)
newValue - is new value for the bounce field.CollisionCollection - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).X3DNode[] getCollidables()
X3DNBodyCollisionSpaceNode,
X3DNBodyCollidableNodeCollisionCollection setCollidables(X3DNode[] newValue)
newValue - is new value for the collidables field.CollisionCollection - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).void addCollidables(X3DNode[] newValue)
newValue - is new value array to be appended the collidables field.void setCollidables(X3DNode newValue)
newValue - is new node for the collidables fieldboolean getEnabled()
CollisionCollection setEnabled(boolean newValue)
newValue - is new value for the enabled field.CollisionCollection - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).float[] getFrictionCoefficients()
CollisionCollection setFrictionCoefficients(float[] newValue)
newValue - is new value for the frictionCoefficients field.CollisionCollection - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).X3DMetadataObject getMetadata()
getMetadata in interface X3DNodeCollisionCollection setMetadata(X3DMetadataObject newValue)
setMetadata in interface X3DNodenewValue - is new value for the metadata field.CollisionCollection - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).float getMinBounceSpeed()
CollisionCollection setMinBounceSpeed(float newValue)
newValue - is new value for the minBounceSpeed field.CollisionCollection - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).float[] getSlipFactors()
CollisionCollection setSlipFactors(float[] newValue)
newValue - is new value for the slipFactors field.CollisionCollection - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).float getSoftnessConstantForceMix()
CollisionCollection setSoftnessConstantForceMix(float newValue)
newValue - is new value for the softnessConstantForceMix field.CollisionCollection - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).float getSoftnessErrorCorrection()
CollisionCollection setSoftnessErrorCorrection(float newValue)
newValue - is new value for the softnessErrorCorrection field.CollisionCollection - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).float[] getSurfaceSpeed()
CollisionCollection setSurfaceSpeed(float[] newValue)
newValue - is new value for the surfaceSpeed field.CollisionCollection - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).CollisionCollection setDEF(java.lang.String newValue)
setDEF in interface X3DNodenewValue - is new value for the DEF field.CollisionCollection - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).CollisionCollection 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.setUSE in interface X3DNodenewValue - is new value for the USE field.CollisionCollection - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).CollisionCollection setCssClass(java.lang.String newValue)
setCssClass in interface X3DNodenewValue - is new value for the class field.CollisionCollection - 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.