mirror of
https://github.com/bevyengine/bevy
synced 2025-01-04 09:18:54 +00:00
5e1c841f4e
# Objective - Implement `Bounded3d` for some `Extrusion<T>` - Provide methods to calculate `Aabb3d`s and `BoundingSphere`s for any extrusion with a `Bounded2d` base shape ## Solution - Implemented `Bounded3d` for all 2D `bevy_math` primitives with the exception of `Plane2d`. As far as I can see, `Plane2d` is pretty much a line? and I think it is very unintuitive to extrude a plane and get a plane as a result. - Add `extrusion_bounding_box` and `extrusion_bounding_sphere`. These are not always used internally since there are faster methods for specific extrusions. Both of them produce the optimal result within precision limits though. ## Testing - Bounds for extrusions are tested within the same module. All unique implementations are tested. - The correctness was validated visually aswell. --------- Co-authored-by: Raphael Büttgenbach <62256001+solis-lumine-vorago@users.noreply.github.com> Co-authored-by: IQuick 143 <IQuick143cz@gmail.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |