SIGN IN SIGN UP
bevyengine / bevy UNCLAIMED

A refreshingly simple data-driven game engine built in Rust

0 0 59 Rust

free camera controller add local space Y controls (#24161)

# Objective

- Fixes https://github.com/bevyengine/bevy/issues/24141

## Solution

- Added Two additional keys (R & F) for local space Y velocity. 
- following the [Blender Walk/Fly
Mode](https://docs.blender.org/manual/en/latest/editors/3dview/navigate/walk_fly.html)
controls.
- Added `FreeCamera::invert_world_local_control()` for alternative
keybinds where Q/E is local Space instead, and R/F is world Space.
    - Some user probably more familiar with Q/E as local space up.
- Updated Examples to resolve key conflict with scroll factor controls
    - from F/G to G/H 

Note: This is my first contribution. If there's anything I am missing
please point it out :)

## Testing

- Did you test these changes? If so, how?
  - I tested with `free_camera_controller` example
- Are there any parts that need more testing?
  - Don't think so.
- How can other people (reviewers) test your changes? Is there anything
specific they need to know?
  - Don't think so. Straightforward change.
- If relevant, what platforms did you test these changes on, and are
there any important ones you can't test?
  - tested on Windows 11. It's not platform specific so should be ok.

---------

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
T
TinyGodzilla committed
51a80d0a141cf49b73a72a7721588b13ba5b3ab0
Parent: a54882c
Committed by GitHub <noreply@github.com> on 5/8/2026, 6:40:00 PM