[−][src]Crate bevy_orbit_controls
An orbit controls plugin for bevy.
Usage
Register the OrbitCameraPlugin
, and add the OrbitCamera
struct to the
entity containing the camera.
For example, within the startup system:
ⓘ
commands .spawn(Camera3dBundle { transform: Transform::from_translation(Vec3::new(-3.0, 3.0, 5.0)) .looking_at(Vec3::default(), Vec3::unit_y()), ..Default::default() }) .with(OrbitCamera::default());
To control the camera, use dragging (left button) to rotate and the mouse wheel to zoom.
Structs
OrbitCamera | |
OrbitCameraPlugin |