Open-Source Wikis

/

Bevy

/

Packages

/

bevy_camera_controller

bevyengine/bevy

bevy_camera_controller

A small collection of pre-built camera controllers for examples. Three files; not meant for shipping games as-is.

Purpose

Bevy doesn't ship a "fly camera" or "orbit camera" in the renderer because game requirements vary. This crate exists to share a few canonical controllers across the examples/ directory so each example doesn't reinvent the math.

Directory layout

crates/bevy_camera_controller/src/
├── lib.rs
├── free_cam.rs   # WASD + mouselook free camera
└── orbit.rs      # Click-and-drag orbit camera

Key abstractions

Type File Description
FreeCamPlugin, FreeCamController crates/bevy_camera_controller/src/free_cam.rs First-person fly camera.
OrbitCameraPlugin, OrbitCamera crates/bevy_camera_controller/src/orbit.rs Orbit-around-target camera.

Integration points

  • Depends on: bevy_app, bevy_ecs, bevy_input, bevy_camera, bevy_transform, bevy_math, bevy_window.
  • Depended on by: Examples; not part of DefaultPlugins.

Entry points for modification

  • Treat this crate as documentation. If you need to ship a camera, copy the file into your project rather than depending on this crate (it has no API stability guarantees).

See also

Built by Factory AutoWiki from public repository content. It is a generated preview for codebase exploration, not source-maintained documentation.

bevy_camera_controller – Bevy wiki | Factory