bevy/crates/bevy_gizmos/src/primitives
IceSentry 67744bb011
Use circle gizmos for capsule (#15602)
# Objective

- The capsule gizmo uses straight lines for the upper and lower circle
which looks pretty ugly.

## Solution

- Use the circle gizmo instead

---

## Showcase

**BEFORE**

![3d_gizmos_sy3CmKUvKO](https://github.com/user-attachments/assets/be014de4-751e-4b40-b814-b5b97bb72031)

**AFTER**

![3d_gizmos_nyADBAUJHg](https://github.com/user-attachments/assets/539ff765-f9d8-4afe-9ac6-41fe83e94e94)

(the circles are red for demonstration purposes only)

# Notes

I also tried using 3d arcs instead of circles but it looks like arcs
need a lot more computation for an almost identical end result. Circles
seem much simpler. The only thing I'm unsure about is if the rotation
stuff is correct. It worked in my testing though.
2024-10-02 19:47:56 +00:00
..
dim2.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
dim3.rs Use circle gizmos for capsule (#15602) 2024-10-02 19:47:56 +00:00
helpers.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
mod.rs