bevy/crates/bevy_gizmos
Arthur Brussee ffb6faafc2
Use Direction3d for gizmos.circle normal (#11422)
# Objective

Fix weird visuals when drawing a gizmo with a non-normed normal.

Fixes #11401

## Solution
Just normalize right before we draw. Could do it when constructing the
builder but that seems less consistent.

## Changelog
- gizmos.circle normal is now a Direction3d instead of a Vec3.

## Migration Guide
- Pass a Direction3d for gizmos.circle normal, eg.
`Direction3d::new(vec).unwrap_or(default)` or potentially
`Direction3d::new_unchecked(vec)` if you know your vec is definitely
normalized.
2024-01-21 18:03:26 +00:00
..
macros Multiple Configurations for Gizmos (#10342) 2024-01-18 15:52:50 +00:00
src Use Direction3d for gizmos.circle normal (#11422) 2024-01-21 18:03:26 +00:00
Cargo.toml Multiple Configurations for Gizmos (#10342) 2024-01-18 15:52:50 +00:00