mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
565324daa3
# 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` |
||
---|---|---|
.. | ||
2d_gizmos.rs | ||
3d_gizmos.rs | ||
axes.rs | ||
light_gizmos.rs |