#VRML V2.0 utf8
     
Group {
    children [
        Shape {
            appearance Appearance {
                material DEF OuterBoxMaterial Material {
                    diffuseColor 0.2 0.2 0.2
                    transparency 0.0
                }
            }
            geometry DEF OuterBox Box {
                size 3.0 2.0 1.0
            }
        }
        Shape {
            appearance Appearance {
                material DEF InnerBoxMaterial Material { 
                emissiveColor 1.0 1.0 1.0
            }
        }
            geometry DEF InnerBox Box {
                size 2.9 1.9 0.9
            }
        }
            DEF BoxTouchSensor TouchSensor {
            }
    ]
}
     
DEF BoxTimer TimeSensor {
    cycleInterval 4.0
    loop FALSE
}
     
ROUTE BoxTouchSensor.touchTime TO BoxTimer.set_startTime
ROUTE BoxTimer.fraction_changed TO OuterBoxMaterial.set_transparency