public interface CollisionSensor extends X3DSensorNode
| Modifier and Type | Method and Description |
|---|---|
CollisionCollection |
getCollider()
Provide CollisionCollection instance (using a properly typed node) from inputOutput SFNode field collider.
|
X3DNode[] |
getContacts()
Provide array of X3DNode results (using an array consisting of properly typed nodes or ProtoInstanceObjects) from outputOnly MFNode field contacts.
|
boolean |
getEnabled()
Provide boolean value from inputOutput SFBool field named enabled.
|
X3DNode[] |
getIntersections()
Provide array of X3DNode results (using an array consisting of properly typed nodes or ProtoInstanceObjects) from outputOnly MFNode field intersections.
|
boolean |
getIsActive()
Provide boolean value from outputOnly SFBool field named isActive.
|
X3DMetadataObject |
getMetadata()
Provide X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.
|
CollisionSensor |
setCollider(CollisionCollection newValue)
Assign CollisionCollection instance (using a properly typed node) to inputOutput SFNode field collider.
|
CollisionSensor |
setCssClass(java.lang.String newValue)
Assign String value to inputOutput SFString field named class.
|
CollisionSensor |
setDEF(java.lang.String newValue)
Assign String value to inputOutput SFString field named DEF.
|
CollisionSensor |
setEnabled(boolean newValue)
Assign boolean value to inputOutput SFBool field named enabled.
|
CollisionSensor |
setMetadata(X3DMetadataObject newValue)
Assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
|
CollisionSensor |
setUSE(java.lang.String newValue)
Assign String value to inputOutput SFString field named USE.
|
CollisionCollection getCollider()
CollisionSensor setCollider(CollisionCollection newValue)
newValue - is new value for the collider field.CollisionSensor - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).X3DNode[] getContacts()
ContactObjectboolean getEnabled()
getEnabled in interface X3DSensorNodeCollisionSensor setEnabled(boolean newValue)
setEnabled in interface X3DSensorNodenewValue - is new value for the enabled field.CollisionSensor - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).X3DNode[] getIntersections()
X3DNBodyCollidableNodeboolean getIsActive()
getIsActive in interface X3DSensorNodeX3DMetadataObject getMetadata()
getMetadata in interface X3DChildNodegetMetadata in interface X3DNodegetMetadata in interface X3DSensorNodeCollisionSensor setMetadata(X3DMetadataObject newValue)
setMetadata in interface X3DChildNodesetMetadata in interface X3DNodesetMetadata in interface X3DSensorNodenewValue - is new value for the metadata field.CollisionSensor - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).CollisionSensor setDEF(java.lang.String newValue)
setDEF in interface X3DChildNodesetDEF in interface X3DNodesetDEF in interface X3DSensorNodenewValue - is new value for the DEF field.CollisionSensor - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).CollisionSensor 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 X3DChildNodesetUSE in interface X3DNodesetUSE in interface X3DSensorNodenewValue - is new value for the USE field.CollisionSensor - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).CollisionSensor setCssClass(java.lang.String newValue)
setCssClass in interface X3DChildNodesetCssClass in interface X3DNodesetCssClass in interface X3DSensorNodenewValue - is new value for the class field.CollisionSensor - 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.