-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use the scroll wheel to control the camera speed in examples #11921
Use the scroll wheel to control the camera speed in examples #11921
Conversation
3afe987
to
4df5ac3
Compare
@DGriffin91 your review here would work well too :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have an easy way to test Line vs Pixel scrolling but otherwise LGTM
I'm interested if someone has an input device that uses pixel scroll since I don't, to check that the pixel to line ratio I picked seems reasonable. |
…ine#11921) # Objective - Closes bevyengine#9384. ## Solution - Make the movement speed of the `CameraController` adjustable with the scroll wheel as mentioned [here](bevyengine#9384 (comment)). The speed use an exponential progression (10% increase per scroll tick by default) to allow adapting the speed to different scales. - For the `scene_viewer` example, make the default speed proportional to the size of the scene using what's computed for the default camera placement. This gives a good enough default to fly over the scene from the outside. I don't think there's a good way to get a default speed fitting for all scenes since some are meant to be viewed from outside while other are traversable environments.
…ine#11921) # Objective - Closes bevyengine#9384. ## Solution - Make the movement speed of the `CameraController` adjustable with the scroll wheel as mentioned [here](bevyengine#9384 (comment)). The speed use an exponential progression (10% increase per scroll tick by default) to allow adapting the speed to different scales. - For the `scene_viewer` example, make the default speed proportional to the size of the scene using what's computed for the default camera placement. This gives a good enough default to fly over the scene from the outside. I don't think there's a good way to get a default speed fitting for all scenes since some are meant to be viewed from outside while other are traversable environments.
Objective
scene_viewer
movement speed proportional to scene size #9384.Solution
CameraController
adjustable with the scroll wheel as mentioned here. The speed use an exponential progression (10% increase per scroll tick by default) to allow adapting the speed to different scales.scene_viewer
example, make the default speed proportional to the size of the scene using what's computed for the default camera placement. This gives a good enough default to fly over the scene from the outside. I don't think there's a good way to get a default speed fitting for all scenes since some are meant to be viewed from outside while other are traversable environments.