Recommended Posts

Hi gang!

  Once before, I tried adding mousewheel to FreeCamera.  I try again, for fun.

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: ?

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.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.