Plonq / bevy_rts_camera

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

Add reset_smoothing function #22

Closed juliohq closed 2 months ago

juliohq commented 2 months ago

This PR adds a function that can be called at any time to reset RtsCamera variables to their target_* counterparts, effectively resetting the smoothing of the camera.

Plonq commented 2 months ago

This is actually already possible, though admittedly not obvious. The advanced example demonstrates this, you just set snap = true and it'll snap to the target values.

Plonq commented 2 months ago

Actually I am wrong, setting snap = true only snaps the X and Y of the focus.

Plonq commented 2 months ago

I'll release a new version tomorrow EDIT nvm, releasing now