feat(camera): add configurable controller settings and commands #1032

Merged
SakulFlee merged 1 commit from feat/camera-settings into main 2026-11-04 19:23:51 +00:00
Owner

Summary

  • Expand CameraControlSettings with enable, movement speed, sprint multiplier, look sensitivity, smoothing, pitch limit, axis inversion, and orthographic zoom speed.
  • Move the default camera controller to a custom system so it can read the settings and keep per-controller smoothing state; examples now call sys_camera_controller().
  • Add CameraCommand events for setting transform, projection, FOV, zoom, clip planes, controller enable state, and the active camera.
  • Apply commands before camera realization and mark existing cameras dirty; no entity or GPU camera recreation.
  • Insert the command event queue in the runtime.

Fixes #580.

Validation

  • cargo check + clippy with -D warnings for orbital_app, orbital_debug_ui, and all templates.
  • cargo test -p orbital_app --lib, including camera command tests.
## Summary - Expand `CameraControlSettings` with enable, movement speed, sprint multiplier, look sensitivity, smoothing, pitch limit, axis inversion, and orthographic zoom speed. - Move the default camera controller to a custom system so it can read the settings and keep per-controller smoothing state; examples now call `sys_camera_controller()`. - Add `CameraCommand` events for setting transform, projection, FOV, zoom, clip planes, controller enable state, and the active camera. - Apply commands before camera realization and mark existing cameras dirty; no entity or GPU camera recreation. - Insert the command event queue in the runtime. Fixes #580. ## Validation - `cargo check` + clippy with `-D warnings` for `orbital_app`, `orbital_debug_ui`, and all templates. - `cargo test -p orbital_app --lib`, including camera command tests.
feat(camera): add configurable controller settings and commands
All checks were successful
Lint / lint (pull_request) Successful in 1m14s
PR / test (pull_request) Successful in 3m41s
Templates / templates (pull_request) Successful in 3m56s
cb37ba7190

Smart test results

Result: PASS

Scope: orbital_app

Reason: directly changed crates

Elapsed: 3m 17s

Workflow run

Overall: 17 tests, 16 passed, 0 failed, 1 skipped

Nextest: 16 tests, 16 passed, 0 failed, 0 skipped
Doctests: 1 tests, 0 passed, 0 failed, 1 skipped

Outcome charts are split between nextest and doctests. The timing chart covers nextest only.

Crate Nextest Passed Failed Skipped Doctests Time
orbital_app 16 16 0 0 0/1 0.26s
pie showData
    title Nextest outcomes
    "Passed" : 16
pie showData
    title Doctest outcomes
    "Skipped" : 1
<!-- orbital-ci-test-results --> ## Smart test results **Result:** PASS **Scope:** orbital_app **Reason:** directly changed crates **Elapsed:** 3m 17s [Workflow run](https://forgejo.sakul-flee.de/SakulFlee/Orbital/actions/runs/1045) **Overall:** 17 tests, 16 passed, 0 failed, 1 skipped **Nextest:** 16 tests, 16 passed, 0 failed, 0 skipped **Doctests:** 1 tests, 0 passed, 0 failed, 1 skipped _Outcome charts are split between nextest and doctests. The timing chart covers nextest only._ | Crate | Nextest | Passed | Failed | Skipped | Doctests | Time | | --- | ---: | ---: | ---: | ---: | ---: | ---: | | orbital_app | 16 | 16 | 0 | 0 | 0/1 | 0.26s | ```mermaid pie showData title Nextest outcomes "Passed" : 16 ``` ```mermaid pie showData title Doctest outcomes "Skipped" : 1 ```
SakulFlee referenced this pull request from a commit 2026-11-04 19:23:52 +00:00
Sign in to join this conversation.
No description provided.