375

Sensing the viewer
Syntax: Collision

  • A Collision grouping node senses if the viewer collides with group shapes
  • collide - enable/disable sensor
  • proxy - simple shape to sense instead of children
  • children - children to sense
  • collideTime - sends time on collision
  • DEF Collide Collision {
        collide TRUE
        proxy Shape { geometry Box { . . . } }
        children [ . . . ]
    }
    ROUTE Collide.collideTime TO OuchSound.set_startTime