#VRML V2.0 utf8 WorldInfo { title "Rifle Body" info "By vr0307" } NavigationInfo { type "EXAMINE" } Background { skyColor 1 0.75 0 } PROTO revolver_body [ 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 [ # Child: gun_barrel Transform { translation 0 0 0 rotation 0 0 1 1.57 children [ Shape { appearance DEF IRON Appearance { material Material { diffuseColor .24 .24 .24 specularColor .3 .25 .3 ambientIntensity .06 shininess .05 } } geometry Cylinder { radius 1.2 height 30 } } Shape { appearance Appearance { material Material{ diffuseColor 0 0 0 ambientIntensity 0 shininess 0 } } geometry Cylinder { radius 0.7 height 30.01 } } ] } # Child: gun_front_sight Transform { translation 14.2 1.09 0 rotation 0 0 0 0 children [ Shape { appearance USE IRON geometry IndexedFaceSet { colorPerVertex FALSE creaseAngle 1 coord Coordinate { point [ .5 .2 .2, .5 .2 -.2, .5 -.2 .2, .5 -.2 -.2, -.3 .2 .2, -.3 .2 -.2, -1.5 -.2 .2, -1.5 -.2 -.2 ] } coordIndex [ 4 0 1 5 -1 7 3 2 6 -1 6 2 0 4 -1 2 3 1 0 -1 3 7 5 1 -1 7 6 4 5 ] } } ] } # Child: body_middle Transform { translation -20 -.6 0 rotation 0 0 0 0 children [ Shape { appearance DEF GOLD Appearance { material Material { diffuseColor .91 .78 .298 specularColor .87 .25 .25 ambientIntensity .157 shininess 1 } } geometry Box { size 10 4 3 } } ] } Transform { translation -20.5 -1.8 0 rotation 0 0 1 0.05 children [ Shape { appearance USE GOLD geometry Box { size 10 2 3 } } ] } Transform { translation -27.35 -1.6 0 rotation 0 0 1 0.5 children [ Shape { appearance USE GOLD geometry Box { size 7 3 3 } } ] } Transform { translation -27 -2.7 0 rotation 0 0 1 0.4 children [ Shape { appearance USE GOLD geometry Box { size 6.8 2 3 } } ] } # Child: body_bottom Transform { translation -5 -1 0 rotation 0 0 1 1.57 children [ Shape { appearance DEF WOOD Appearance { material Material { diffuseColor .35 .16 .12 specularColor .21 .11 0 ambientIntensity .0533 shininess .05 } } geometry Cylinder { radius 1.5 height 20 } } ] } # Child: trigger_protector Transform { translation -24 -3 0 children [ Shape { appearance USE IRON geometry Extrusion { spine [ .8 0 0, .8 -1.27196 0, .128767 -2.55382 0, -2.62222 -2.7 0, -4.4 -1.3 0 ] crossSection [ 0 .4, .1 0, 0 -.4, -.1 0, 0 .4 ] scale [ 4 1.7, 1 1, 1 1, 1 1, 2 1 ] } } ] } ] } } revolver_body { }