Open edlundNWP opened 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
zoom_through_objects
max_size_per_pixel
clamped_scaled_zoom
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.
zoom_through_objects is more like "clamp velocity at limits instead of halting", but that seems more opaque than the chosen name.
When setting
zoom_through_objects
to true, themax_size_per_pixel
is ignored. This is because if zoom through objects is enabled the previously calculatedclamped_scaled_zoom
value is not used. https://github.com/aevyrie/bevy_editor_cam/blob/f0387799e12cce9662a4789e6f64225c4b0aa143/src/controller/component.rs#L420-L426This 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 howzoom_through_objects
affects the zoom-in limit.