mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
4da11fda77
# Objective Sometimes it's nice to iterate over all the coordinate axes using something like `Vec3::AXES`. This was not available for the corresponding `Dir` types and now it is. ## Solution We already have things like `Dir2::X`, `Dir3::Z` and so on, so I just threw them in an array like the vector types do it. I also slightly refactored the sphere gizmo code to use `Dir3::AXES` and operate on directions instead of using `Dir3::new_unchecked`. ## Testing I looked at the sphere in the `3d_gizmos` example and it seems to work, so I assume I didn't break anything. |
||
---|---|---|
.. | ||
macros | ||
src | ||
Cargo.toml | ||
README.md |