mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
37cc8ea33b
# Objective This PR addresses #12222 (Fixes #12222). Simple addition to add a 2D axes gizmo. ## Solution - Add a new method axes_2d which takes a transform and a case length and then draws two arrows in the XY plane. The only thing I'm not sure about here is taking a 3D transform as an argument. It says in the transform comments that for 2D the z-axis is used for ordering, so I figured I'd keep it that way? --- ## Changelog - Add method axes_2d. - Update arrow_2d to also calculate the tip length depending on arrow length as in arrow. - Add axes_2d to examples 2d_gizmos. --------- Co-authored-by: Ben Lambert <bennett-spencer.lambert@pierer-innovation.com> |
||
---|---|---|
.. | ||
macros | ||
src | ||
Cargo.toml | ||
README.md |