Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Isometry in bevy_gizmos wherever we can #14676

Merged
merged 11 commits into from
Aug 28, 2024
Prev Previous commit
fix rotation in one of the tests to be the same as before
  • Loading branch information
RobWalt committed Aug 26, 2024
commit 08bfa92c202e4a10970aa0ba66479e225dd59f1f
12 changes: 10 additions & 2 deletions examples/gizmos/3d_gizmos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,18 @@ fn draw_example_collection(
.resolution(10);

// Circles have 32 line-segments by default.
my_gizmos.circle(Isometry3d::IDENTITY, 3., BLACK);
my_gizmos.circle(
Isometry3d::from_rotation(Quat::from_rotation_arc(Vec3::Z, Vec3::Y)),
3.,
BLACK,
);
// You may want to increase this for larger circles or spheres.
my_gizmos
.circle(Isometry3d::IDENTITY, 3.1, NAVY)
.circle(
Isometry3d::from_rotation(Quat::from_rotation_arc(Vec3::Z, Vec3::Y)),
3.1,
NAVY,
)
.resolution(64);
my_gizmos
.sphere(Isometry3d::IDENTITY, 3.2, BLACK)
Expand Down