switch
Switch {
whichChoice -1
choice [
DEF SPHERE_BULLET Transform {
translation -0.1 -0.1 0
children [
Shape {
appearance DEF BULLETAPPEARANCE Appearance {
material Material {
diffuseColor 0 .2 .9
}
}
geometry Sphere { radius 0.2 }
}
]
}
DEF BOX_BULLET Transform {
translation -0.1 -0.1 0
children [
Shape {
appearance USE BULLETAPPEARANCE
geometry Box { size 0.8 0.8 0.8 }
}
]
}
DEF CONE_BULLET Transform {
translation -0.1 -0.1 0
rotation 0 0 1 -1.56
children Shape {
appearance USE BULLETAPPEARANCE
geometry Cone { bottomRadius 0.4 height 0.8 }
}
}
]
}