#VRML V2.0 utf8 WorldInfo { title "Bullet" info "By vr0307" } NavigationInfo { type "NONE" } Background { skyColor 1 0.75 0 } PROTO bullet [ 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 [ Transform { rotation 0 0 1 1.57 children [ # Child 1: Bullet_body Transform { translation 0 0 0 children [ Shape { appearance DEF BULLET_GOLD Appearance { material Material { diffuseColor .5 .35 .07 specularColor .82 .93 .81 ambientIntensity .06 shininess .07 } } geometry Cylinder { radius 0.5 height 2.5 side TRUE } } ] } # Child 2: Bullet_top Transform { translation 0 1.25 0 children [ Shape { appearance USE BULLET_GOLD geometry Sphere { radius 0.5 } } ] } # Child 3: Bulletcase Transform { rotation 0 0 0 0 translation 0 0 0 children [ Shape { appearance DEF BULLET_GREY Appearance { material Material { diffuseColor .57 .58 .58 specularColor .67 .46 .44 ambientIntensity .137 shininess .17 } } geometry Cylinder { radius 0.55 height 2.2 } } ] } # Child 4: Bullet_Rim Transform { rotation 0 0 0 0 translation 0 -1.3 0 children [ Shape { appearance USE BULLET_GREY geometry Cylinder { radius 0.55 height 0.2 } } ] } ] } ] } } bullet { translation 0 0 0 scale 1 1 1 rotation 0 0 0 0 }