DEF Action1 Script { |
eventIn SFFloat clicked |
eventOut SFVec3f set_position |
url "vrmlscript: // Note: Cosmo Player 2.0 still wants to see vrmlscript |
function clicked(time) |
{ set_position[0] = 1.0+time*1; |
set_position[1] = Math.sin(time*6.28); |
set_position[2] = 0.0; |
}" |
} |
ROUTE GO.touchTime TO TIME1.startTime |
ROUTE TIME1.fraction_changed TO Action1.clicked |
ROUTE Action1.set_position TO T1.set_translation |