# 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> |
||
|---|---|---|
| .. | ||
| primitives | ||
| aabb.rs | ||
| arcs.rs | ||
| arrows.rs | ||
| circles.rs | ||
| config.rs | ||
| gizmos.rs | ||
| grid.rs | ||
| lib.rs | ||
| light.rs | ||
| line_joints.wgsl | ||
| lines.wgsl | ||
| pipeline_2d.rs | ||
| pipeline_3d.rs | ||
| rounded_box.rs | ||