Update: CC - SpoonLib - Mouse Wheel (opxis1pjmo.js) 40 bytes modified
parent
53d954536a
commit
5ef45cff51
|
@ -3,19 +3,18 @@ if (!this.entityLoaded) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.initialized) {
|
if (!this.initialized) {
|
||||||
|
|
||||||
|
this.cylinder = this.entityLoaded.cylinder;
|
||||||
|
|
||||||
this.initialized = true;
|
this.initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
var mesh = GameLib.EntityManager.Instance.findComponentById('xtnu5j78bq');
|
|
||||||
|
|
||||||
if (data.event.deltaY > 0) {
|
if (data.event.deltaY > 0) {
|
||||||
mesh.rotation.x += 0.897597901;
|
this.cylinder.rotation.x += 0.897597901;
|
||||||
} else {
|
} else {
|
||||||
mesh.rotation.x -= 0.897597901;
|
this.cylinder.rotation.x -= 0.897597901;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(mesh.rotation.x);
|
|
||||||
|
|
||||||
//mesh.rotation.x += data.event.deltaY * 0.001;
|
//mesh.rotation.x += data.event.deltaY * 0.001;
|
||||||
//mesh.updateInstance('rotation');
|
//mesh.updateInstance('rotation');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue