Position Interpolator Example
Transform {
rotation 0 1 0 4.18
children [
DirectionalLight {
ambientIntensity 0.75
}
DEF POSINT PositionInterpolator {
key [0, 0.25, 0.5, 0.75, 1]
keyValue [ 1 4 -10,
1 2 -10,
-1 2 -10,
-1 4 -10,
1 4 -10 ]
}
Transform {
translation 0 0.5 -10
children [
Shape {
appearance Appearance {
material Material {
emissiveColor 1 1 1
}
}
geometry Text {
string ["PositionInterpolator"]
fontStyle FontStyle {
justify "MIDDLE"
}
}
}
]
}
DEF POSTGT Transform {
translation 0 3 -10
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 0 1
}
}
geometry Sphere {
}
}
]
}
]
}