#VRML V2.0 utf8 Viewpoint { position 0.0 0.15 1.0 description "Entry View" } NavigationInfo { type [ "EXAMINE", "ANY" ] headlight TRUE } PROTO lamp [ ] { Transform { translation 0.0 0.01 0.0 rotation 1.0 0.0 0.0 1.571 children [ # Lamp DEF MoveLamp PlaneSensor { } DEF Lamp Transform { rotation 1.0 0.0 0.0 -1.571 children [ Shape { appearance Appearance { material Material { diffuseColor 0.5 0.5 0.5 } } geometry Cylinder { radius 0.1 height 0.01 } } Group { children [ DEF MoveFirstArm CylinderSensor { } DEF FirstArm Transform { children [ Transform { translation 0.0 0.15 0.0 center 0.0 -0.15 0.0 children [ DEF LampArm Shape { appearance DEF Red Appearance { material Material { diffuseColor 1.0 0.2 0.2 } } geometry Cylinder { radius 0.01 height 0.3 } } Group { children [ DEF MoveSecondArm CylinderSensor { } DEF SecondArm Transform { children [ Transform { translation 0.00 .30 0.0 rotation -25 -.15 0.0 -0 center 0.0 -0.15 0.0 children [ USE LampArm, Group { children [ DEF shade SphereSensor { offset 1.0 0.0 0.0 -1.25 } DEF Shade Transform { translation 0.0 0.075 0.0 rotation 1.0 0.0 0.0 -1.25 center 0.0 0.075 0.0 children [ Shape { appearance USE Red geometry Cone { height 0.15 bottomRadius 0.12 bottom FALSE } } Transform { translation 0.0 0.075 0.0 children [ Shape { appearance Appearance { material Material { diffuseColor 1.0 1.0 1.0 } } geometry Cylinder { radius 0.007 height 0.03 } } ] } Transform { translation 0.0 -0.05 0.0 children [ Shape { appearance Appearance { material Material { diffuseColor 0.0 0.0 0.0 emissiveColor 1.0 1.0 1.0 } } geometry Sphere { radius 0.05 } } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } ] } } lamp { }