1 unstable release
0.1.0 | Oct 13, 2024 |
---|
#1294 in Game dev
167 downloads per month
34KB
152 lines
bevy-topdown-camera
A simple 3d topdown camera plugin for the Bevy game engine.
Features
- Smooth and fixed camera follow modes
- Configurable zoom settings
- Keyboard and mouse wheel zoom controls
- Easy integration with Bevy projects
Quick Start
- Add plugin to your app
- Add the component to an orthographic camera:
commands
.spawn(Camera3dBundle::default())
.insert(PanCam::default());
- Add
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.
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Dependencies
~35–73MB
~1.5M SLoC