Plonq / bevy_rts_camera

RTS-style camera controls plugin for Bevy Engine
Apache License 2.0
53 stars 5 forks source link

Fix bug with dynamic angle smoothing #9

Closed Plonq closed 5 months ago

Plonq commented 5 months ago

Two problems:

  1. Dynamic angle was based on current zoom not target zoom
  2. Smoothing was lerping from target angle to target angle 🤦🏻

With this fix, I no longer need the offset modification, and it results in a nicer zoom. There's still a weird bit near 100% zoom with dynamic angle on, caused by the circular easing, but it's not too bad and it's better than no easing.