mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
4de67b5cdb
# Objective - I've seen quite a few people on discord copy-paste the camera code of the first-person example and then run into problems with the pitch. - ~~Additionally, the code is framerate-dependent.~~ it's not, see comment in PR ## Solution - Make the code good enough to be copy-pasteable - ~~Use `dt` to make the code framerate-independent~~ Add comment explaining why we don't use `dt` - Clamp the pitch - Move the camera sensitivity into a component for better configurability ## Testing Didn't run the example again, but the code is straight from another project I have open, so I'm not worried. --------- Co-authored-by: Antony <antony.m.3012@gmail.com> |
||
---|---|---|
.. | ||
2d_top_down_camera.rs | ||
first_person_view_model.rs | ||
projection_zoom.rs |