bevy-cross-gizmo

Crates.iobevy-cross-gizmo
lib.rsbevy-cross-gizmo
version0.15.0
created_at2024-06-16 07:22:11.689969+00
updated_at2024-11-29 21:57:51.592061+00
descriptionThis crate is deprecated. Use Bevy's Gizmos::cross and Gizmos::cross_2d methods instead.
homepagehttps://bevyengine.org
repositoryhttps://github.com/lubomirkurcak/bevy-cross-gizmo
max_upload_size
id1273323
size15,687
Ľubomír Kurčák (lubomirkurcak)

documentation

README

Deprecated

This crate is deprecated. The functionality has been integrated into Bevy. Use Gizmos::cross for 3D and Gizmos::cross_2d for 2D.


bevy-cross-gizmo

Adds cross and cross_2d gizmos to Bevy.

cross cross_2d

Installation

[dependencies]
bevy-cross-gizmo = "0.14.0"

Usage

use bevy::prelude::*;
use bevy_cross_gizmo::BevyCrossGizmo;

fn update(mut gizmos: Gizmos) {
    gizmos.cross(Vec3::ZERO, Quat::IDENTITY, 0.3, Color::WHITE);
    gizmos.cross_2d(Vec3::ZERO, 0.0, 0.3, Color::WHITE);
}

Compatibility

bevy bevy-cross-gizmo
0.15.0 part of Bevy Gizmos
0.14.0 0.14.0
0.13.2 0.13.2

License

Dual-licensed under either:

at your option.

Commit count: 5

cargo fmt