r3-custom-code/ot5qabk55a.js

13 lines
375 B
JavaScript

if (R3.Utils.UndefinedOrNull(this.camera)) {
this.camera = R3.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