animation control
Transform {
translation 0 1 0
children [
DirectionalLight {
direction 0 -1 0
}
DirectionalLight {
direction 0 1 0
}
Transform { # Looping animation addition
translation 2 0 0
children [
DEF TouchLoop TouchSensor {}
Shape {
appearance Appearance {
material Material {
diffuseColor 0.8 0.4 0
specularColor 0 1 1
shininess .7
}
}
geometry Cone {}
}
]
}
Transform { # Non-looping animation addition
translation -2 0 0
rotation 1 0 0 3.14
children [
DEF TouchSingle TouchSensor {}
Shape {
appearance Appearance {
material Material {
diffuseColor 0.4 0.8 0
specularColor 1 0 1
shininess .7
}
}
geometry Cone {}
}
]
}
]
}