These are chat archives for highfidelity/hifi

17th
Aug 2017
Eduardo Guzman Lau Len
@egll-tech
Aug 17 2017 18:35
Thanks @MidnightRift, I will try it today.
Hi does anyone know how to interpolate an angle rotation according to the frame rate? This is my code so far, but it guessing the total_expected_frames http://s3.amazonaws.com/udacity-high-fidelity-mutual-integration-us-east-1/rotationScript.js
Clément Brisset
@Atlante45
Aug 17 2017 18:43

@eagle2990 You can connect to the update signal:

function myFunction(deltatime) {
    // Do stuff
}
Script.update.connect(myFunction);

If you do, don't forget to disconnect the signal in unload:

this.unload = function() {
    Script.update.disconnect(myFunction);
}