mirror of
https://github.com/bevyengine/bevy
synced 2024-11-14 00:47:32 +00:00
6c78c7b434
# Objective Since `align` was introduced, it has been reworked to allow the input of `Dir3` instead of `Vec3`, and we also introduced random sampling for points on a sphere and then for `Dir3`. Previously, this example rolled its own random generation, but it doesn't need to any more. ## Solution Refactor the 'align' example to use `Dir3` instead of `Vec3`, using the `bevy_math` API for random directions. |
||
---|---|---|
.. | ||
3d_rotation.rs | ||
align.rs | ||
scale.rs | ||
transform.rs | ||
translation.rs |