bevy/crates/bevy_gizmos/src
Pablo Reinhardt 6b0e3fa572
Add double end arrow to gizmos (#11890)
# Objective

- Implement double ended arrows, suggestion of #9400

## Solution

- Creation of new field and method to the `ArrowBuilder`

---

## Changelog

### Added
- New field `ArrowBuilder::double_ended`
- New method `ArrowBuilder::with_double_end` to redefine the
double_ended field

## Additional

I added this in the 3d_gizmos example, that's the result:


![image](https://github.com/bevyengine/bevy/assets/126117294/2f8a93eb-4952-401a-b600-b1454cf898a9)

I added this arrow in the 2d_gizmos example too:


![image](https://github.com/bevyengine/bevy/assets/126117294/c46b4871-8acf-4711-9ca8-c2df36c0464b)

---------

Co-authored-by: Afonso Lage <lage.afonso@gmail.com>
Co-authored-by: Pablo Reinhardt <pabloreinhardt@gmail.com>
2024-04-16 01:34:22 +00:00
..
primitives Add tetrahedron gizmos (#12914) 2024-04-10 17:59:58 +00:00
aabb.rs Migrate from LegacyColor to bevy_color::Color (#12163) 2024-02-29 19:35:12 +00:00
arcs.rs Changed the order of arguments for the Arc gizmo docs (#12854) 2024-04-03 01:46:20 +00:00
arrows.rs Add double end arrow to gizmos (#11890) 2024-04-16 01:34:22 +00:00
circles.rs Migrate from LegacyColor to bevy_color::Color (#12163) 2024-02-29 19:35:12 +00:00
config.rs Gizmo line styles (#12394) 2024-03-25 19:10:45 +00:00
gizmos.rs Forbid unsafe in most crates in the engine (#12684) 2024-03-27 03:30:08 +00:00
grid.rs Gizmo 3d grids (#12430) 2024-03-13 18:51:53 +00:00
lib.rs Fix crates not building individually (#12948) 2024-04-14 00:06:03 +00:00
light.rs Add basic light gizmos (#12228) 2024-03-03 18:50:46 +00:00
line_joints.wgsl Gizmo line joints (#12252) 2024-03-11 19:21:32 +00:00
lines.wgsl Gizmo line styles (#12394) 2024-03-25 19:10:45 +00:00
pipeline_2d.rs Consolidate Render(Ui)Materials(2d) into RenderAssets (#12827) 2024-04-09 13:26:34 +00:00
pipeline_3d.rs Consolidate Render(Ui)Materials(2d) into RenderAssets (#12827) 2024-04-09 13:26:34 +00:00