bevy/examples/gizmos
Robert Walter 565324daa3
Improve the gizmo for Plane3d, reusing grid (#14650)
# Objective

With the current implementation of `Plane3d` gizmos, it's really hard to
get a good feeling for big planes. Usually I tend to add more axes as a
user but that doesn't scale well and is pretty wasteful. It's hard to
recognize the plane in the distance here. Especially if there would've
been other rendered objects in the scene


![image](https://github.com/user-attachments/assets/b65b7015-c08c-46d7-aa27-c7c0d49b2021)

## Solution

- Since we got grid gizmos in the mean time, I went ahead and just
reused them here.

## Testing

I added an instance of the new `Plane3D` to the `3d_gizmos.rs` example.
If you want to look at it you need to look around a bit. I didn't
position it in the center since that was too crowded already.

---

## Showcase


![image](https://github.com/user-attachments/assets/e4982afe-7296-416c-9801-7dd85cd975c1)

## Migration Guide

The optional builder methods on 

```rust

gizmos.primitive_3d(&Plane3d { }, ...);

```

changed from

- `segment_length`
- `segment_count`
- `axis_count`

to 

- `cell_count`
- `spacing`
2024-08-29 15:51:36 +00:00
..
2d_gizmos.rs Gizmos: arc_2d utility helpers (#14932) 2024-08-28 11:33:11 +00:00
3d_gizmos.rs Improve the gizmo for Plane3d, reusing grid (#14650) 2024-08-29 15:51:36 +00:00
axes.rs Adding explanation to seeded rng used in examples (#12593) 2024-03-26 19:40:18 +00:00
light_gizmos.rs Updates default Text font size to 24px (#13603) 2024-05-31 16:41:27 +00:00