371

Sensing the viewer
Syntax: ProximitySensor

  • A ProximitySensor node senses if the viewer enters or leaves a region
  • center and size - the region's location and size
  • enterTime and exitTime - sends time on entry/exit
  • isActive - sends true/false on entry/exit
  • DEF ProxSense ProximitySensor {
        center 0.0 0.0 0.0
        size   14.0 14.0 14.0
    }
    ROUTE ProxSense.enterTime TO Clock.set_startTime