#VRML V2.0 utf8

Switch
{  choice
   [ DEF Tuere Shape  { appearance Appearance { material Material { diffuseColor 1 0 1 } }
                        geometry Box { size 2 3 0.2}
                      }
     DEF Wand Shape   { appearance Appearance { material Material { diffuseColor 0 1 1 } }
                        geometry Box { size 4 4 0.2}
                      }
   ]
}

Transform { children USE Wand translation 3 0 0 }
Transform { children USE Wand translation -3 0 0 }

Group {children  [ DEF Dreher CylinderSensor {minAngle -1.5 maxAngle 1.5 }
                   DEF Objekt Transform {children USE Tuere center 1 0 0 }
                 ]
      }
ROUTE Dreher.rotation_changed TO Objekt.set_rotation