#VRML V2.0 utf8

DEF CONE_TRANS Transform {
  translation 0 3 0
  rotation 1 0 0 0
  children [
    DEF DRAG_SENSOR PlaneSensor { autoOffset TRUE}
    DEF T Transform {
    children Shape {
      appearance Appearance {
        material Material {
          diffuseColor 0.9 0.1 0.1
        }
      }
      geometry Box { size 1 1 1 }
    }
   }
  ]
}

Transform {
  children [
    Shape {
      appearance Appearance {
        material Material {
          emissiveColor 0.4 0.0 1.0
        }
      }
      geometry IndexedFaceSet {
        coord Coordinate {
          point [
            10 0 10,
            10 0 -10,
            -10 0 -10,
            -10 0 10
          ]
        }
        coordIndex [
          0, 1, 2, 3, -1
        ]
      }
    }
  ]
}

ROUTE DRAG_SENSOR.translation_changed TO T.set_translation