avian3d 0.6.1

An ECS-driven physics engine for the Bevy game engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Run with:
//! `cargo run --example debugdump_3d > dump.dot  && dot -Tsvg dump.dot > dump.svg`

use avian3d::prelude::*;
use bevy::prelude::*;

fn main() {
    let mut app = App::new();

    app.add_plugins((PhysicsPlugins::default(), PhysicsDebugPlugin));

    // Schedules of interest:
    // - PhysicsSchedule
    // - SubstepSchedule
    // - FixedPostUpdate
    // - Update
    bevy_mod_debugdump::print_schedule_graph(&mut app, PhysicsSchedule);
}