Future to the fantasy ★ ★
Titania
X3D Editor
Version
3.0

TransformSensor

Fields

metadata

SFNode inputOutput
Field to add metadata information.

enabledSFBool inputOutput
Specifies whether this sensor is enabled. A disabled sensor does not produce any output.

size

SFVec3f inputOutput
Size of intersection box, measured from center in meters.

center

SFVec3f inputOutput
Translation offset from origin of local coordinate system.

targetObject

SFNode inputOutput
targetObject is the movable geometry represented by any valid X3DGroupingNode or X3DShapeNode which may enter or exit the box.

Events

isActiveSFBool outputOnly
isActive true/false events are sent when triggering the sensor. isActive=true when targetObject enters the box region, isActive=false when targetObject exits the box region.
enterTimeSFTime outputOnly
Time event generated when targetObject enters the box region for sensor.
exitTimeSFTime outputOnly
Time event generated when targetObject exits the box region for sensor.
position_changedSFVec3f outputOnly
Sends translation event relative to center whenever the target object is contained within the box region and results change.

orientation_changed

SFRotation outputOnly
Sends rotation event relative to center whenever the target object is contained within the box region and results change.

Description

The TransformSensor node generates events when its target object enters, exits, and moves within a region in space (defined by a box).

Falling Boxes

»Falling Boxes« demonstrates the use of the TransformSensor node. Each colored box represents a TransformSensor where the floor is the targetObject.