Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 1.22 KB

README.md

File metadata and controls

48 lines (33 loc) · 1.22 KB

Gizmos for bevy

The way NEO would see the Matrix if he was a gamedev;

Design Goals

BTW This is what I want not what I got

  1. Non Intrusive, it doesn't affect your system scheduling and if you don't want them they are gone;
fn my_system(gizmos: Res<GizmosCommandBuffer>, ...) {
    gizmos.draw(|context| {
        // If gizmos are disabled this won't run
        let points = generete_your_expensive_spline(too_many_points);
        context.line_list(point);
    })
}
  1. Immediate and Persistent Mode's
fn startup_system(mut commands: Commands) {
    commands.spawn(PbrBundle { ... }) // The object
        .with_children(|c| c.spawn(
            GizmoBundle { // And his gizmo
                gizmo: Gizmo { ... },
            })
        );
}
  1. Fast TM

Ideally it shouldn't drop FPS while active, unless it's a user fault.

  1. Gizmos for days

Have a lot of pre-made gizmos, enough to cover basic and some extra, to name a few: capsule, spline, arrow_handle, billboards;

Preview

Showcase Preview

Other alternatives

bevy_prototype_debug_lines