| Crates.io | bevy-topdown-camera |
| lib.rs | bevy-topdown-camera |
| version | 0.1.0 |
| created_at | 2024-10-13 13:16:02.819487+00 |
| updated_at | 2024-10-13 13:16:02.819487+00 |
| description | A simple 3d topdown camera for Bevy |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1407329 |
| size | 128,051 |
A simple 3d topdown camera plugin for the Bevy game engine.
commands
.spawn(Camera3dBundle::default())
.insert(PanCam::default());
TopdownFollowTarget component to player entity (entity you want the camera to follow)commands
.spawn(PbrBundle {
mesh: meshes.add(Capsule3d::new(0.3, 1.0).mesh()),
material: materials.add(Color::srgb(0.8, 0.7, 0.6)),
transform: Transform::from_xyz(0.0, 0.75, 0.0),
..default()
}).insert(TopdownFollowTarget);
See the basic example.
Licensed under either of
at your option.