element
PROTO element [
exposedField SFFloat radius 1
exposedField SFColor color 1 0 0
exposedField SFFloat speed 0.1
exposedField SFFloat accel 0.1
exposedField SFVec3f translation 0 0 0
exposedField SFVec3f scale 0.2 0.2 0.2
exposedField SFRotation rotation 0 0 0 0
]{
DEF GROUP Transform {
translation IS translation
scale IS scale
rotation IS rotation
children [
Shape {
geometry Sphere { radius 10 }
appearance Appearance {
material DEF MATERIAL Material {
diffuseColor IS color
transparency 0.8
}
}
}
Switch {
whichChoice -1
choice [
DEF OBJECT object { }
] }
bounce { translation 0 0 0 scale 0.5 0.5 0.5 accel IS speed object USE OBJECT }
]}
}