This component defines nodes to detect some changes in the environment.
ProximitySensor, the only currently implemented node,
alows to detect when user is inside a defined 3D space.
See also X3D specification of the Environmental sensor component.
For demos and tests of these features,
sensors_environmental subdirectory inside our VRML/X3D demo models.
are not generated. Rest works Ok, according to spec. Timestamps
for isActive, enter/exitTime are not interpolated (they are simply
timestamps when this was detected), this shouldn't be a problem in
For now, visibility is determined only by whether
the box fits within a view frustum. We don't use
occlusion query yet for this, which means that visibility is not
as conservative as it could be. For example, box hidden behind a wall
within frustum will still be visible (according to this sensor).
We have occlusion query (even two approaches for it) implemented in our engine,
so integration of
VisibilitySensor with it will
definitely happen one day (please report if you badly need this :).
TODO: TransformSensor missing.
Copyright Michalis Kamburelis and Castle Game Engine Contributors.
This webpage is also open-source and we welcome pull requests to improve it.