The function(method)'s name is the same as the eventIn and is passed two arguments, event value and its timestamp. The type of the value is the same as the type of the eventIn and the type of the timestamp is SFTime. |
Script { |
eventIn SFVec3f new_translation |
url "javascript: |
function new_translation(value, timestamp) { ... }" |
} |