// // testJointOverride.js // a test script to see what is happening with the eyes. // // Author: Angus Antley // Copyright High Fidelity 2019 // // Licensed under the Apache 2.0 License // See accompanying license file or http://apache.org/ // // /* eslint no-magic-numbers: 0, max-len: 0, comma-dangle: 0, brace-style: 0 */ (function() { var jointIndex = -1; var testRotation90 = { x: 0.7071, y: 0, z: 0, w: 0.7071 }; function init() { jointIndex = MyAvatar.getJointIndex("RightEye"); Script.update.connect(update); } function update(dt) { MyAvatar.setJointRotation(jointIndex, testRotation90); } function shutdown() { Script.update.disconnect(update); } Script.scriptEnding.connect(shutdown); init(); }());