Table of contents Chapter index Previous slide Next slide 169
Syntax: CylinderSensor

Sensing viewer actions
Syntax: CylinderSensor
  • A CylinderSensor node senses a cursor drag and generates rotations as if rotating a cylinder
  • isActive - sends true/false when mouse button pressed/released
  • rotation_changed - sends rotation during a drag
  • <Group>
            <CylinderSensor  DEF="Rotator" ...../>
            <Transform DEF="Rotate-me"....>
            ..............
            </Transform>
    
    </Group>
    <ROUTE fromNode="Rotator" fromField="value_changed" 
           toNode="Rotate-me" toField="set_rotation"/>