mirror of
https://github.com/bevyengine/bevy
synced 2025-02-27 04:47:14 +00:00
# Objective - Add a new example showcasing how to add custom primitives and what you can do with them. ## Solution - Added a new example `custom_primitives` with a 2D heart shape primitive highlighting - `Bounded2d` by implementing and visualising bounding shapes, - `Measured2d` by implementing it, - `Meshable` to show the shape on the screen - The example also includes an `Extrusion<Heart>` implementing - `Measured3d`, - `Bounded3d` using the `BoundedExtrusion` trait and - meshing using the `Extrudable` trait. ## Additional information Here are two images of the heart and its extrusion:   --------- Co-authored-by: Jakub Marcowski <37378746+Chubercik@users.noreply.github.com> |
||
---|---|---|
.. | ||
custom_primitives.rs | ||
random_sampling.rs | ||
render_primitives.rs | ||
sampling_primitives.rs | ||
smooth_follow.rs |