Chapter 27 - Sensing Visibility Proximity Collision

Page Description
Figure 27.1 Visibility Sensor Dungeon Sliding Doors A dungeon door that slides open when visible, and slides closed when not visible. When you are look away from the door it goes shut, then it reopens when you look back. Page up/down between the first two viewpoints to observe this behavior. Arrow keys also help you peek left/right. Interesting side effect: users can't back through the door.
Figure 27.2 Proximity Sensor Dungeon Sliding Doors A dungeon door that slides open when the ProximitySensor detects the viewer close enough. Later the doors close when the viewer moves out of range from the ProximitySensor.
Figure 27.3 Collision Detection Spinning Orb An orb that animates (for a single revolution) when the viewer collides with its box proxy shape. Walk towards the orb by using the up-arrow key.

http://www.web3d.org/x3d/content/examples/Vrml2.0Sourcebook/Chapter27-SensingVisibilityProximityCollision