MCPcopy Index your code
hub / github.com/SarthakSingh31/bevy_4x_camera

github.com/SarthakSingh31/bevy_4x_camera @0.1.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.1.2 ↗ · + Follow
21 symbols 22 edges 3 files 1 documented · 5% updated 4y ago0.1.2 · 2021-01-23★ 372 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Crates.io

A 4X style camera for bevy. Demo

Default Key Bindings:

  • W / A / S / D / Arrow Keys / Mouse Left - Move along the horizontal plane
  • Q / E / Mouse Right - Rotate around the center
  • Mouse Wheel - Zoom

Example

use bevy::{prelude::*, render::camera::PerspectiveProjection};
use bevy_4x_camera::{CameraRigBundle, FourXCameraPlugin};

fn main() {
    App::build()
        .add_plugins(DefaultPlugins)
        .add_plugin(FourXCameraPlugin)
        .add_startup_system(setup.system())
        .run();
}

fn setup(commands: &mut Commands) {
    commands
        // camera
        .spawn(CameraRigBundle::default())
        .with_children(|cb| {
            cb.spawn(Camera3dBundle {
                // I recommend setting the fov to a low value to get a
                // a pseudo-orthographic perspective
                perspective_projection: PerspectiveProjection {
                    fov: 0.1,
                    ..Default::default()
                },
                transform: Transform::from_translation(Vec3::new(-20.0, 20., 0.0))
                    .looking_at(Vec3::zero(), Vec3::unit_y()),
                ..Default::default()
            });
        });
}

Version Matching

Bevy Version bevy_4x_camera Version
0.4.0 0.1.0

Core symbols most depended-on inside this repo

default
called by 0
src/lib.rs
camera_rig_movement
called by 0
src/lib.rs
camera_rig_follow
called by 0
src/lib.rs
build
called by 0
src/lib.rs
main
called by 0
examples/board.rs
camera_and_lights
called by 0
examples/board.rs
build
called by 0
examples/board.rs
board
called by 0
examples/board.rs

Shape

Class 9
Function 9
Method 3

Languages

Rust100%

Modules by API surface

src/lib.rs11 symbols
examples/board.rs8 symbols
examples/minimal.rs2 symbols

For agents

$ claude mcp add bevy_4x_camera \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page