Source VRML code 'singledoor.wrl'


#VRML V2.0 utf8
# singledoor.wrl - single door

NavigationInfo{
type ["EXAMINE","ANY"]
}
Background {
skyColor     [ 0 0 0 ]
}

#DEF VP Viewpoint {
#       position 0 1.6 10
#       orientation 0 1 0 0
#       description "Start"
#}

DEF ddoor Group {
 children[
        DEF FRAME Transform {
         translation 0 0 0
         children[
                Inline {
                 url "singledoorframe.wrl"
                }
         ]# end FRAME child
        }# end FRAME

        DEF door Transform {
         rotation 0 1 0 0
         children[
                DEF csDoor CylinderSensor{
                 maxAngle        1.4
                 minAngle       -1.4
                }
                Inline {
                 url "bluedoor.wrl"
                }
         ]# end door child
        }# end door

 ] # end singledoor child
}# end singledoor 

ROUTE csDoor.rotation_changed   TO door.set_rotation