bevy
bevy copied to clipboard
Dedicated primitive example
I just implemented this to record a video for the new blog post, but I figured it would also make a good dedicated example. This also allows us to remove a lot of code from the 2d/3d gizmo examples since it supersedes this portion of code.
Depends on: https://github.com/bevyengine/bevy/pull/11699
The generated examples/README.md
is out of sync with the example metadata in Cargo.toml
or the example readme template. Please run cargo run -p build-templated-pages -- update examples
to update it, and commit the file change.
The generated examples/README.md
is out of sync with the example metadata in Cargo.toml
or the example readme template. Please run cargo run -p build-templated-pages -- update examples
to update it, and commit the file change.
For anyone reviewing this: Please note that I extracted a bugfix which was previously included. The polygon in 2D will be fixed. The bugfix can be found here https://github.com/bevyengine/bevy/pull/11699/commits/f7473ec7216cd4744150ff658b348144f4acd7d5
I like the look of the actual example, but:
- The naming doesn't quite work when using the same enum for 2D and 3D, e.g. this is not a circle:
- The 2D view doesn't have shape names: (the layout is also a bit different)
- There are several empty choices in the 2D mode without explanation
I like the look of the actual example, but:
* The naming doesn't quite work when using the same enum for 2D and 3D, e.g. this is not a circle:
* The 2D view doesn't have shape names: (the layout is also a bit different)
* There are several empty choices in the 2D mode without explanation
I'm not really sure how to do this (yet?). Somehow it's hard for me to position the text consistently between 2D and 3D views. On my screen it looked ok but I see that the current state won't work for everyone. If you have any ideas on how to resolve that, let me know.
@Jondolf just addressed the last issue in my lunch break 👍🏼
The generated examples/README.md
is out of sync with the example metadata in Cargo.toml
or the example readme template. Please run cargo run -p build-templated-pages -- update examples
to update it, and commit the file change.
The generated examples/README.md
is out of sync with the example metadata in Cargo.toml
or the example readme template. Please run cargo run -p build-templated-pages -- update examples
to update it, and commit the file change.
The generated examples/README.md
is out of sync with the example metadata in Cargo.toml
or the example readme template. Please run cargo run -p build-templated-pages -- update examples
to update it, and commit the file change.
Meshing for most 3D primitives was added in #11688, so this example should probably be updated to reflect that
@Jondolf done 👍🏼