#VRML V2.0 utf8 WorldInfo { title "Revolver Cylinder" info "By Allard van Helbergen" } NavigationInfo { type "EXAMINE" } Background { skyColor 1 0.75 0 } PROTO revolver_cylinder [ 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 [ #1 main cylinder Transform { translation 0 0.01 0 children [ Shape { appearance DEF SILVER Appearance { material Material { diffuseColor .37 .37 .37 specularColor .89 .89 .89 ambientIntensity .1 shininess .13 } } geometry Cylinder { radius 2 height 4.9 side TRUE } } ] } #2 bullet cylinders Transform { rotation 0 1 0 0.52 children [ Transform { translation 0 0 1.2 children [ DEF BULLET_CYLINDER Shape { appearance Appearance { material Material { diffuseColor 0 0 0 } } geometry Cylinder { radius .5 height 5 } } ] } Transform { translation 0 0 -1.2 children [ USE BULLET_CYLINDER ] } Transform { translation 1.04 0 0.6 children [ USE BULLET_CYLINDER ] } Transform { translation -1.04 0 0.6 children [ USE BULLET_CYLINDER ] } Transform { translation 1.04 0 -0.6 children [ USE BULLET_CYLINDER ] } Transform { translation -1.04 0 -0.6 children [ USE BULLET_CYLINDER ] } ] } #3 extractor Transform { translation 0 -2.3 0 children [ Shape { appearance Appearance { material Material { diffuseColor .22 .15 0 specularColor 1 .98 .78 emissiveColor .09 .09 .09 ambientIntensity .0333 shininess .1 } } geometry Cylinder { radius .7 height 0.5 side TRUE } } ] } #4 extractor rod Transform { translation 0 1.4 0 children [ Shape { appearance Appearance { material Material { diffuseColor .37 .37 .37 specularColor .89 .89 .89 ambientIntensity .1 shininess .13 } } geometry Cylinder { radius 0.3 height 8 side TRUE } } ] } #5 extractor tip Transform { translation 0 6.5 0 children [ Shape { appearance Appearance { material Material { diffuseColor .37 .37 .37 specularColor .89 .89 .89 ambientIntensity .1 shininess .13 } } geometry Cone { bottomRadius 0.25 height 0.7 side TRUE } } ] } #6 center pin Transform { translation 0 1.8 0 children [ Shape { appearance Appearance { material Material { diffuseColor .22 .15 0 specularColor 1 .98 .78 emissiveColor .09 .09 .09 ambientIntensity .0333 shininess .1 } } geometry Cylinder { radius 0.1 height 9 side TRUE } } ] } #7 locking bolt Transform { translation 0 5.75 0 children [ Shape { appearance Appearance { material Material { diffuseColor .22 .15 0 specularColor 1 .98 .78 emissiveColor .09 .09 .09 ambientIntensity .0333 shininess .1 } } geometry Cylinder { radius 0.15 height .5 side TRUE } } ] } ] } } revolver_cylinder { }