Update: CC - Mouse Move - Moorcow (fsilsam72g.js) 217 bytes modified

beta.r3js.org
-=yb4f310 2017-11-07 01:05:06 +01:00
parent 9d1d91797b
commit 951cb2b486
1 changed files with 5 additions and 0 deletions

View File

@ -12,4 +12,9 @@ cursor.position.x = (-1 * (window.innerWidth / 2 - data.event.x)) * 0.025;
cursor.position.y = (((window.innerHeight / 2 - data.event.y)) * 0.05);
cursor.updateInstance();
var thrower = GameLib.EntityManager.Instance.findComponentById('01viz3rw6l');
thrower.rotation.x = 0.5 + cursor.position.y * 0.05;
thrower.rotation.y = Math.PI + (cursor.position.x * -0.1);
thrower.updateInstance();
//@ sourceURL=mouseMove.js