bevy/examples/camera
Jan Hohenheim ffd6c9e1c9
Rewrite camera shake example (#19724)
# Objective

- Alternative to #19721
- The old implementation had several issues:
  - underexplained
  - bit complicated in places
  - did not follow the source as described
    - camera moves away
    - camera does not use noise
- camera nudges back after shake ends, which looks cinematic, but not
what you want in practice

All in all: the old implementation did not really show a typical
implementation IMO

## Solution

- Rewrite it :D
- I believe the current implementation is a robust thing you can learn
from or just copy-paste into your project

## Testing


https://github.com/user-attachments/assets/bfe74fb6-c428-4d5a-9c9c-cd4a034ba176

---------

Co-authored-by: Rob Parrett <robparrett@gmail.com>
2025-06-20 16:43:14 +00:00
..
2d_on_ui.rs add 2d_on_ui example (#18513) 2025-06-02 22:11:32 +00:00
2d_screen_shake.rs Rewrite camera shake example (#19724) 2025-06-20 16:43:14 +00:00
2d_top_down_camera.rs Split Camera.hdr out into a new component (#18873) 2025-05-26 19:24:45 +00:00
camera_orbit.rs
custom_projection.rs Fix a few subcrate import paths in examples (#19002) 2025-04-30 18:41:17 +00:00
first_person_view_model.rs Update shader_prepass, testbed_2d, and first_person_view_model examples to use children! macro (#18270) 2025-03-22 22:35:20 +00:00
projection_zoom.rs Refactor and simplify custom projections (#17063) 2025-01-01 20:44:24 +00:00