Jump to content

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:

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.

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...