#VRML V2.0 utf8 WorldInfo { title "Dynamite Clock" info "By vr0307" } NavigationInfo { type "EXAMINE" } Background { skyColor 1 0.75 0 } PROTO clock[ exposedField SFVec3f translation 0 0 0 exposedField SFVec3f scale 1 1 1 exposedField SFRotation rotation 0 0 0 0 ] { Transform { translation IS translation scale IS scale rotation IS rotation children [ # Body Transform { rotation 1 0 0 1.57 children [ Shape { appearance Appearance { material Material { } } geometry Cylinder { radius 4 height 2 } } ] } # Front Transform { translation 0 0 1 rotation 1 0 0 1.57 children [ Shape { appearance Appearance { texture ImageTexture { url "clock.jpg" } textureTransform TextureTransform { translation 0.2 -1.2 scale .065 .065 } } geometry Cylinder { radius 3.9 height 0.1 } } ] } # Back Transform { rotation 1 0 0 1.57 children [ Shape { appearance Appearance { material Material { } } geometry Cone { bottomRadius 4.5 height 2 } } ] } # Bells Transform { translation -2 4.5 0 rotation 0 0 1 .35 children [ DEF CLOCK_BELL Transform { children [ Transform { translation 0 -1 0 children [ Shape { appearance Appearance { material Material { } } geometry Cylinder { radius .1 height 1 } } ] } Shape { appearance Appearance { material Material { } } geometry Cone { bottomRadius 1.7 height 1.3 } } ] } ] } Transform { translation 2 4.5 0 rotation 0 0 1 -.35 children [ USE CLOCK_BELL ] } # Hammer Transform { translation 0 4.3 0 children [ Transform { translation 0 0.5 0 rotation 1 0 0 1.57 children [ Shape { appearance Appearance { material Material { } } geometry Cylinder { radius 0.3 height 0.1 } } ] } Shape { appearance Appearance { material Material { } } geometry Cylinder { radius 0.05 height 1 } } ] } # Legs Transform { translation 2 -3 0.5 rotation -0.45 -0.09 0.89 0.44 children [ DEF CLOCK_LEG Transform { children [ Shape { appearance Appearance { material Material { } } geometry Cylinder { radius 0.15 height 1 } } Transform { translation 0 -.6 0 children [ Shape { appearance Appearance { material Material { } } geometry Sphere { radius .15 } } ] } Transform { translation 0 -0.95 0 children [ Shape { appearance Appearance { material Material { } } geometry Cylinder { radius 0.15 height .5 } } ] } Transform { translation 0 -1.45 0 rotation 1 0 0 3.14 children [ Shape { appearance Appearance { material Material { } } geometry Cone { bottomRadius 0.15 height 0.5 } } ] } ] } ] } Transform { translation -2 -3 0.5 rotation -0.45 0.09 -0.89 0.44 children [ USE CLOCK_LEG ] } ] } } clock { translation 0 0 0 scale 1 1 1 rotation 0 0 0 0 }