#bevy #c3d #bevy-plugin #biomechanics #motion-capture

bevy_c3d

A plugin for loading C3D motion capture files into Bevy

6 releases

new 0.12.0 Nov 26, 2023
0.11.5 Oct 29, 2023
0.11.3 Aug 27, 2023

#409 in Game dev

Download history 11/week @ 2023-08-14 65/week @ 2023-08-21 16/week @ 2023-08-28 7/week @ 2023-09-11 4/week @ 2023-09-18 7/week @ 2023-09-25 25/week @ 2023-10-02 6/week @ 2023-10-16 27/week @ 2023-10-23 17/week @ 2023-10-30 2/week @ 2023-11-06 2/week @ 2023-11-13 27/week @ 2023-11-20

65 downloads per month

MIT/Apache

33KB
90 lines

bevy_c3d

Crates.io

A .c3d asset loader plugin for the Bevy engine

Usage

  1. Add the crate as a dependency through:
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

  1. Add the plugin:
use bevy::prelude::*;
use bevy_c3d::*;

fn main() {
    App::new()
        .add_plugins((DefaultPlugins, C3dPlugin))
        .run();
}
  1. Load the .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");
}

Example

A full example is available at examples/basic.rs.

Clone this repository and use the command cargo run --example basic to run the example.

Support

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.

Dependencies

~29–69MB
~1M SLoC