| Crates.io | bevy_blendy_cameras |
| lib.rs | bevy_blendy_cameras |
| version | 0.7.0 |
| created_at | 2024-07-26 19:15:31.813465+00 |
| updated_at | 2025-04-29 21:43:58.966178+00 |
| description | Bevy editor like cameras controls for Pan/Orbit/Zoom and Fly mode. Switch mode, set camera viewpoint and frame view around entities |
| homepage | https://github.com/thmxv/bevy_blendy_cameras |
| repository | https://github.com/thmxv/bevy_blendy_cameras |
| max_upload_size | |
| id | 1316641 |
| size | 285,272 |
Editor like cameras controls and features inspired by Blender's viewport camera controls.
Add the plugin:
.add_plugins(BlendyCamerasPlugin)
Add the controllers components to a camera:
commands.spawn((
Camera3d::default() ,
Transform::from_translation(Vec3::new(0.0, 1.5, 5.0)),
OrbitCameraController::default(),
FlyCameraController {
is_enabled: false,
..default()
},
));
Adding both controller is not required. If you need just one, only add this one. If you want to switch from one to another, adding both before the switch is OK, just make sure only one is enabled. Otherwise both will react to inputs.
Check out the basic example to see more functionalities.
bevy_egui (optional): Ignore input when egui has the focus| bevy | bevy_blendy_cameras |
|---|---|
| 0.16 | 0.7 |
| 0.15 | 0.6 |
| 0.14 | 0.2-0.5 |
| 0.13 | 0.1 |