Crates.io | bevy_c3d |
lib.rs | bevy_c3d |
version | 0.14.0 |
source | src |
created_at | 2023-08-20 06:12:10.440056 |
updated_at | 2024-11-25 17:49:09.414247 |
description | A plugin for loading C3D motion capture files into Bevy |
homepage | https://chiron.rs/bevy_c3d |
repository | https://github.com/biomechanics-foundation/bevy_c3d |
max_upload_size | |
id | 949211 |
size | 133,064 |
A .c3d asset loader plugin for the Bevy engine
cargo add bevy_c3d
or add it to your Cargo.toml
[dependencies]
bevy = "0.12"
bevy_c3d = "0.12"
The major and minor versions should match Bevy
use bevy::prelude::*;
use bevy_c3d::*;
fn main() {
App::new()
.add_plugins((DefaultPlugins, C3dPlugin))
.run();
}
.c3d
file as an asset:fn example_load_c3d(asset_server: Res<AssetServer>, mut c3d_state: ResMut<C3dState>) {
c3d_state.handle = asset_server.load("test.c3d");
}
A full example is available at examples/basic.rs
.
Clone this repository and use the command cargo run --example basic
to run the example.
bevy_c3d
is a stand-alone crate used in Chiron, an open-source biomechanics simulation and modeling package supported by the Biomechanics Foundation.
Consider supporting our work to help us contribute more to the body of biomechanics software.