Wingnut Posted February 16, 2018 Share Posted February 16, 2018 Hi 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. Quote Link to comment Share on other sites More sharing options...
satguru Posted February 16, 2018 Share Posted February 16, 2018 this maybe http://playground.babylonjs.com/#6FHKHC#9 GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted February 16, 2018 Author Share Posted February 16, 2018 Oh, yeah, well done, @satguru. Thanks! The answer was so close that I couldn't see it. Cool. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.