170

Sensing viewer actions
Syntax: PlaneSensor

  • A PlaneSensor node senses a cursor drag and generates translations as if sliding on a plane
  • isActive - sends true/false when mouse button pressed/released
  • translation_changed - sends translations during a drag
  • Transform {
        children [
            DEF Mover  PlaneSensor { }
            DEF MoveMe Transform { . . . }
        ]
    }
    ROUTE Mover.translation_changed TO MoveMe.set_translation