370

Sensing the viewer
Syntax: VisibilitySensor

  • A VisibilitySensor node senses if the viewer sees or stops seeing 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 VisSense VisibilitySensor {
        center 0.0 0.0 0.0
        size   14.0 14.0 14.0
    }
    ROUTE VisSense.enterTime TO Clock.set_startTime