aevyrie / bevy_editor_cam

A camera controller for editors and CAD.
Apache License 2.0
29 stars 5 forks source link

zoom_through_objects affects maximum zoom when zooming out #20

Open edlundNWP opened 18 hours ago

edlundNWP commented 18 hours ago

When setting zoom_through_objects to true, the max_size_per_pixel is ignored. This is because if zoom through objects is enabled the previously calculated clamped_scaled_zoom value is not used. https://github.com/aevyrie/bevy_editor_cam/blob/f0387799e12cce9662a4789e6f64225c4b0aa143/src/controller/component.rs#L420-L426

This should probably be reflected in the docs of zoom_through_objects, or there could be another option to enable or disable the zoom out limit, analogous to how zoom_through_objects affects the zoom-in limit.

aevyrie commented 6 hours ago

zoom_through_objects is more like "clamp velocity at limits instead of halting", but that seems more opaque than the chosen name.