bevy/examples/tools/scene_viewer
Kanabenki 8de15ae71a
Use the scroll wheel to control the camera speed in examples (#11921)
# Objective

- Closes #9384.

## Solution

- Make the movement speed of the `CameraController` adjustable with the
scroll wheel as mentioned
[here](https://github.com/bevyengine/bevy/issues/9384#issuecomment-1668957931).
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.
2024-02-19 16:57:20 +00:00
..
animation_plugin.rs Rework animation to be done in two phases. (#11707) 2024-02-19 14:59:54 +00:00
main.rs Use the scroll wheel to control the camera speed in examples (#11921) 2024-02-19 16:57:20 +00:00
morph_viewer_plugin.rs Update winit dependency to 0.29 (#10702) 2023-12-21 07:40:47 +00:00
scene_viewer_plugin.rs Multiple Configurations for Gizmos (#10342) 2024-01-18 15:52:50 +00:00