1 | 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. |
2 | Script { |
3 | eventIn SFVec3f new_translation |
4 | url "javascript: |
5 | function new_translation(value, timestamp) { ... }" |
6 | } |