MCPcopy Index your code
hub / github.com/erasin/bevy_vox

github.com/erasin/bevy_vox @0.10.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.10.0 ↗ · + Follow
18 symbols 23 edges 3 files 2 documented · 11%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Load MagicaVoxel Vox file for bevy engine.

bevy_vox bevy
0.10 0.14
0.9 0.13
0.8 0.12
0.7 0.10
0.6 0.9
0.5 0.8
0.4 0.6
0.3 0.5
0.2 0.4

Example

use bevy::prelude::*;
use bevy_vox::VoxPlugin;

fn main() {
    App::new()
        .insert_resource(Msaa::Sample4)
        .add_plugins(DefaultPlugins)
        .add_plugins(VoxPlugin::default())
        .insert_resource(AmbientLight {
            color: Color::WHITE,
            brightness: 0.5,
        })
        .add_systems(Startup, setup)
        .run();
}

fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
    // add entities to the world
    commands.spawn(SceneBundle {
        scene: asset_server.load("2x2x2.vox"),
        transform: Transform::from_xyz(0.0, 0.0, 0.0),
        ..default()
    });

    // light
    commands.spawn(PointLightBundle {
        point_light: PointLight {
            intensity: 3_000_000.0,
            ..Default::default()
        },
        transform: Transform::from_xyz(3.0, -3.5, 4.5),
        ..Default::default()
    });

    // camera
    commands.spawn(Camera3dBundle {
        transform: Transform::from_xyz(6.0, -6.0, 6.0).looking_at(Vec3::ZERO, Vec3::Y),
        ..Default::default()
    });
}

Core symbols most depended-on inside this repo

palette_label
called by 2
src/loader.rs
load
called by 1
src/loader.rs
load_vox
called by 1
src/loader.rs
swap_yz
called by 1
src/loader.rs
swap
called by 0
src/lib.rs
build
called by 0
src/lib.rs
finish
called by 0
src/lib.rs
extensions
called by 0
src/loader.rs

Shape

Method 7
Class 5
Function 5
Enum 1

Languages

Rust100%

Modules by API surface

src/loader.rs10 symbols
src/lib.rs4 symbols
examples/load_vox.rs4 symbols

For agents

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

⬇ download graph artifact