Expand description
§C3D file loader for Bevy
This crate provides a plugin for loading C3D files in the Bevy game engine. It uses the c3dio crate to parse the C3D files.
§Usage
Add the bevy_c3d
crate to your Cargo.toml
file:
[dependencies]
bevy = "0.12"
bevy_c3d = "0.12"
Then add the C3dPlugin
to your Bevy app:
use bevy::prelude::*;
use bevy_c3d::prelude::*;
fn main() {
App::build()
.add_plugins(DefaultPlugins)
.add_plugin(C3dPlugin)
.add_startup_system(setup)
.run();
}
Refer to the basic example for a complete example of how to use the plugin.
You can run the example with the following command:
cargo run --example basic
Re-exports§
pub use prelude::*;
Modules§
Structs§
- Plugin for loading C3D files