Class: CollisionSensor

X3D: 3.3
Component: RigidBodyPhysics
Status:
experimental

x3dom.nodeTypes. CollisionSensor

The CollisionSensor node is used to send collision detection information into the scene graph for user processing. The collision detection system does not require an instance of this class to be in the scene in order for it to run or affect the physics model. This class is used to report to the user contact information should the user require this information for other purposes.

HTML Encoding and Default Values

<CollisionSensor collider='x3dom.nodeTypes.CollisionCollection' enabled='true' metadata='X3DMetadataObject' ></CollisionSensor>

Inheritance


Constructor

CollisionSensor(ctx)

Constructor for CollisionSensor

Parameters:
Name Type Argument Default Description
ctx Object <optional>
null context object, containing initial settings like namespace

Fields

These are the X3D / X3DOM fields of this node. Values should usually be received / set as strings via DOM functions (i.e., using setAttribute("myFieldName", "myFieldValue") and getAttribute("myFieldName")).
Name Type Default Value Range Inheritance Standard Description
collider SFNode CollisionCollection The collider field specifies the nodes and spaces that are to be included in collision detection computations.
enabled SFBool true X3DSensorNode Specifies whether this sensor is enabled. A disabled sensor does not produce any output.
metadata SFNode X3DMetadataObject X3DSensorNode Field to add metadata information