PlaneMeshBuilder
should include a configurable amount of subdivision for the mesh
#13258
Labels
A-Math
Fundamental domain-agnostic mathematical operations
C-Usability
A targeted quality-of-life change that makes Bevy easier to use
D-Straightforward
Simple bug fixes and API improvements, docs, test and examples
P-Regression
Functionality that used to work but no longer does. Add a test for this!
X-Uncontroversial
This work is generally agreed upon
What problem does this solve or what need does it fill?
In bevy 0.12 the
struct was used to construct plane meshes.
The
subdivision
parameter controlled the amount of subdivisions in the resulting mesh.This control was removed with the introduction of
Plane3d
.However, this behavior is very useful for prototyping or games that generate their own meshes in bevy instead of loading them from external sources and should be provided by bevy IMO.
What solution would you like?
Add a subdivision parameter to
PlaneMeshBuilder
.The subdivisions should default to the current behavior.
I also believe the code for creating the mesh can be easily ported from the old implementation in bevy 0.12.
Debatable
I don't think the old design of subdivisions = 0 is great. The docs in 0.12 state:
Maybe this could be better represented as a enum? I'm open to suggestions here.
The text was updated successfully, but these errors were encountered: