proto gate
PROTO Gate [field MFString GateName [ ]
exposedField SFVec3f translation 0 0 0
exposedField SFRotation rotation 0 1 0 0]
{
Transform { translation IS translation
rotation IS rotation
children [
Transform {
translation 0 2.43 0
children [
Shape {
appearance Appearance {material DEF ColorofGate Material {diffuseColor 0.2 0.2 0.2
emissiveColor .5 .5 .5}}
geometry Box {size 7.4 .2 .2}
} ] }# gate top
Transform {
translation -3.6 1.22 0
children [
Shape {
appearance Appearance {material USE ColorofGate}
geometry Box {size .2 2.44 .2}
} ] } # gate left
Transform {
translation 3.6 1.22 0
children [
Shape {
appearance Appearance {material USE ColorofGate}
geometry Box {size .2 2.44 .2}
} ] } # gate right
Transform {
translation -3.6 1.22 -0.5
children [
Shape { appearance Appearance {
material Material {diffuseColor 0.6 0.6 0.6
emissiveColor 1 1 1
transparency .7}
}
geometry Box {size .05 2.44 1}
}]}# left back of gate
Transform {
translation 3.6 1.22 -0.5
children [
Shape { appearance Appearance {
material Material {diffuseColor 0.6 0.6 0.6
emissiveColor 1 1 1
transparency .7}
}
geometry Box {size .05 2.44 1}
}]}# right back of gate
Transform {
translation 0 1.22 -1
children [
Shape { appearance Appearance {
material Material {diffuseColor 0.6 0.6 0.6
emissiveColor 1 1 1
transparency .7}
}
geometry Box {size 7.4 2.44 .05}
}]}# middle back of gate
] } } # end of proto Gate