Initial Commit: Custom Code - BK Flame - Mouse Wheel (ot5qabk55a.js)

beta.r3js.org
-=yb4f310 2017-10-31 12:56:28 +01:00
parent b75e22905f
commit 1d7cf9d96f
1 changed files with 13 additions and 0 deletions

13
ot5qabk55a.js Normal file
View File

@ -0,0 +1,13 @@
if (GameLib.Utils.UndefinedOrNull(this.camera)) {
this.camera = GameLib.EntityManager.Instance.findComponentById('yv62w8sx9r');
}
if (data.event.deltaY < 0 && this.camera.fov > 30) {
this.camera.fov -= 30;
this.camera.updateInstance();
} else if (data.event.deltaY > 0 && this.camera.fov < 90) {
this.camera.fov += 30;
this.camera.updateInstance();
}
//@ sourceURL=mouseWheel.js