Titania X3D Editor

Bring Colours to Your Life.

Titania v4.0.1

Bring Colours to Your Life.

X3D Reference

CollisionSensor

CollisionSensor

CollisionSensor generates collision-detection events.

The CollisionSensor node belongs to the RigidBodyPhysics component and its container field is children. It is available since X3D version 3.2 or later.

Hierarchy

Fields

SFNode [in, out] metadata NULL [X3DMetadataObject]

Metadata are not part of the X3D world and not interpreted by the X3D browser, but they can be accessed via the ECMAScript interface.

SFBool [in, out] enabled TRUE

Enables/disables node operation.

SFNode [in, out] collider NULL [CollisionCollection]

Input/Output field collider.

SFBool [out] isActive

IsActive true/false events are sent when sensing starts/stops.

MFNode [out] intersections [X3DNBodyCollidableNode]

Output field intersections.

MFNode [out] contacts

Output field contacts.

Description

Hints

  • Contains CollisionCollection node (containerField='collider').
  • CollisionSensor also has output events: CollidableOffset and CollidableShape nodes (containerField='intersections'), Contact nodes (containerField='contacts').

Browser Compatibility

Titania X_ITE
no no