Update: CC - Mouse Move - Moorcow (fsilsam72g.js) 217 bytes modified
parent
9d1d91797b
commit
951cb2b486
|
@ -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.position.y = (((window.innerHeight / 2 - data.event.y)) * 0.05);
|
||||||
cursor.updateInstance();
|
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
|
//@ sourceURL=mouseMove.js
|
Loading…
Reference in New Issue