mirror of
https://github.com/bevyengine/bevy
synced 2025-01-07 02:38:59 +00:00
190d032ae4
# Objective Add new options to some primitives, like anchoring for Cones and cylinders and custom angle ranges for Torus. I think these kind of options are useful, but I would understand that these addition feel overkill ## Solution Add ## Testing - Did you test these changes? If so, how? > I used the new options in the `3d_shapes` example with various parameters and got the expected results ## Changelog - Added `caps` bool option to toggle cylinder circle caps - Added `angle_range` f32 range option non full torus shapes - Added `anchor` enum option for cylinders, with either `Top`, `Midpoint` or `Bottom` - Added `anchor` enum option for cones, with either `Tip`, `Midpoint` or `Base` - **BREAKING** `TorusMeshBuilder` is no longer `Copy` due to `RangeInclusive`, we can use a `(f32, f32)` if we want it to be `Copy` |
||
---|---|---|
.. | ||
macros | ||
src | ||
Cargo.toml | ||
README.md |