Crates.io | bevy_blendy_cameras |
lib.rs | bevy_blendy_cameras |
version | |
source | src |
created_at | 2024-07-26 19:15:31.813465 |
updated_at | 2024-12-02 17:38:37.711037 |
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 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
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 focusbevy | bevy_blendy_cameras |
---|---|
0.15 | 0.6 |
0.14 | 0.2-0.5 |
0.13 | 0.1 |
I am a bit new to both Rust and Bevy and this plugin is in early stages. Help is welcomed.