ProximitySensor generates events when the viewer enters, exits and moves within a region of space (defined by a box).
The ProximitySensor node belongs to the EnvironmentalSensor component and its container field is children. It is available since X3D version 3.0 or later.
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.
SFVec3f [in, out] size 0 0 0 [0,∞)
Size of Proximity box.
Size 0 0 0 is same as enabled false.
SFVec3f [in, out] center 0 0 0 (-∞,∞)
Position offset from origin of local coordinate system.
SFTime [out] enterTime
Time event generated when user's camera enters the box.
SFTime [out] exitTime
Time event generated when user's camera exits the box.
SFBool [out] isActive
IsActive true/false events are sent as viewer enters/exits Proximity box. isActive=true when viewer enters Proximity box, isActive=false when viewer exits Proximity box.
SFVec3f [out] position_changed
Sends translation event relative to center.
SFRotation [out] orientation_changed
Sends rotation event relative to center.
SFVec3f [out] centerOfRotation_changed
Sends changed centerOfRotation values, likely caused by user interaction.