Search the Community
Showing results for tags 'camera inputs'.
Found 1 result
solved Mousewheel for FreeCamera
Wingnut posted a topic in Questions & AnswersHi gang! Once before, I tried adding mousewheel to FreeCamera. I try again, for fun. http://playground.babylonjs.com/#6FHKHC#7 Watch console. Working okay, so far. But, you know, I would like mousewheel to move camera along direction vector returned-from scene.activeCamera.getDirection(BABYLON.Axis.Z) Currently, mousewheel moves camera along worldspace Z axis. If someone could fix line 33, so that camera moves along dir.z axis, that would be swell. Thanks! For a longer-term solution, does anyone think it would be wise/useful... to add babylon.freeCameraMouseWheelInput.ts to this list: https://github.com/BabylonJS/Babylon.js/tree/master/src/Cameras/Inputs ? The way I am using... is small and works pretty good, but it is not using the camera inputs system. Maybe it should? *shrug* Comments welcome on that. thx.