EXTERNPROTO PositionInterpolator2D [
eventIn SFFloat set_fraction
exposedField MFFloat key
exposedField MFVec2f keyValue
eventOut SFVec2f value_changed
] "proto_pi2d.wrl"
Viewpoint {
position -5 0 5
orientation 0 -1 0 0.78
description "initial"
}
NavigationInfo {
type "EXAMINE"
}
Background {
skyColor 1 1 1
}
Shape {
appearance Appearance {
material Material {}
texture ImageTexture {
url "map.gif"
}
textureTransform DEF TT TextureTransform {}
}
geometry Box {}
}
DEF TiS TimeSensor {
cycleInterval 25
loop TRUE
}
DEF PI2D PositionInterpolator2D {
key [ 0.0 0.25 0.5 0.75 1.0 ]
keyValue [
0.0 0.0
1.0 0.0
1.0 1.0
0.0 1.0
0.0 0.0
]
}
ROUTE TiS.fraction_changed TO PI2D.set_fraction
ROUTE PI2D.value_changed TO TT.translation