Vectors To VRML Events - (4)
Why do we ned 'up' ? The notion of 'up' is needed because there is one more degree of freedom to tame, the 'ROLL' (U.S. Mill. term).
Transform { rotation 0 0 1 -1.57 children [ DEF ROLL_TRANS Transform { children [ Transform { translation 0 1 0 children [ Shape { appearance Appearance { material Material { diffuseColor 1 1 1 } } geometry Cone {} } ] } Transform { translation 0 -1.5 0 children [ Shape { appearance Appearance { material Material { diffuseColor 1 1 1 } } geometry Cylinder { height 3 radius 0.5 } } ] } Transform { translation 0.75 -1.5 0 children [ Shape { appearance Appearance { material Material { diffuseColor 1 1 1 } } geometry Box { size 0.5 3 0.5 } } ] } ] } ] } DEF ROLL_TIMER TimeSensor { loop TRUE } DEF ROLL_INTER OrientationInterpolator { key [ 0 0.5 1.0 ] keyValue [ 0 1 0 0, 0 1 0 3.14, 0 1 0 6.28] } ROUTE ROLL_TIMER.fraction_changed TO ROLL_INTER.set_fraction ROUTE ROLL_INTER.value_changed TO ROLL_TRANS.set_rotation