13 lines
385 B
JavaScript
13 lines
385 B
JavaScript
|
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
|