The ProximitySensor node belongs to the EnvironmentalSensor component and its container field is children. It is available since X3D version 3.0 or later.
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.
Hint
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.
Description
Hints
Multiple USEd instances are cumulative, but avoid overlaps.
Can first use Transform to relocate/reorient box.
Surround entire world to start behaviors once scene is loaded.
By clicking »Accept« or continuing to use the site, you agree to the use of CREATE3000 and third-party cookies and other similar technologies to enhance your browsing experience, analyze and measure your engagement with our content, and provide more relevant ads on CREATE3000 websites and others. Learn more about cookies. You can withdraw your consent at any time.