mirror of
https://github.com/bevyengine/bevy
synced 2025-02-18 23:18:43 +00:00
# Objective - Fixes #14655 ## Solution Rotation should happen first as this is more easier to conceptualize in the mind: We rotate around the coordinate origin `Vec3::ZERO` and then we just shift the geometry so that its center is exactly on the specified position ## Testing && Showcase Code: ```rust gizmos.grid( Vec3::ONE * 10.0, Quat::from_rotation_x(PI / 3. * 2.), UVec2::splat(20), Vec2::new(2., 2.), PURPLE, ); gizmos.sphere(Vec3::ONE * 10.0, Quat::default(), 1.0, PURPLE); ``` Before picture:  After picture:  ## Migration Guide - Users might have to double check their already existing calls to all the `grid` methods. It should be more intuitive now though. |
||
---|---|---|
.. | ||
2d_gizmos.rs | ||
3d_gizmos.rs | ||
axes.rs | ||
light_gizmos.rs |