Very simple camera controller for bevy game engine inspired by threejs orbit controls.
This repo includes a simple example. Check it out via cargo run --example basic_usage.
Just add the OrbitControlsPlugin plugin during setup method and spawn the OrbitCameraControllerBundle component with
the camera you want it attached to. The bundle will add a OrbitCameraController as well as a Transform component to
the entity.
commands.spawn((
Camera3d::default(),
Projection::from(PerspectiveProjection {
..PerspectiveProjection::default()
}),
OrbitCameraControllerBundle::from(
OrbitCameraController::new(vec3(5.0, 5.0, 5.0), Vec3::ZERO)
)
));