bevy-topdown-camera

Crates.iobevy-topdown-camera
lib.rsbevy-topdown-camera
version0.1.0
sourcesrc
created_at2024-10-13 13:16:02.819487
updated_at2024-10-13 13:16:02.819487
descriptionA simple 3d topdown camera for Bevy
homepage
repository
max_upload_size
id1407329
size128,051
(thaileqt)

documentation

README

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

  1. Add plugin to your app
  2. Add the component to an orthographic camera:
commands
    .spawn(Camera3dBundle::default())
    .insert(PanCam::default());
  1. 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

at your option.

Commit count: 0

cargo fmt