bevy/crates/bevy_gizmos/src
François Mockers 443ce9a62b
gizmos: take normal of normal on plane 3d before rotation (#13326)
# Objective

- Example `render_primitives` is painful to look at for the plane in 3d,
the gizmo seems to have extra rotations


https://github.com/bevyengine/bevy/assets/8672791/08509624-14ac-4f00-a758-9a14233ef1a9

## Solution

- Take the normal of the normal before rotation, then rotate it

## Testing

- Run the example, rotations are more in sync


https://github.com/bevyengine/bevy/assets/8672791/91c26ce4-4b7b-4575-ba32-7c32026e4596
2024-05-11 19:32:31 +00:00
..
primitives gizmos: take normal of normal on plane 3d before rotation (#13326) 2024-05-11 19:32:31 +00:00
aabb.rs Migrate from LegacyColor to bevy_color::Color (#12163) 2024-02-29 19:35:12 +00:00
arcs.rs Contextually clearing gizmos (#10973) 2024-04-23 00:16:12 +00:00
arrows.rs Contextually clearing gizmos (#10973) 2024-04-23 00:16:12 +00:00
circles.rs Contextually clearing gizmos (#10973) 2024-04-23 00:16:12 +00:00
config.rs Gizmo line styles (#12394) 2024-03-25 19:10:45 +00:00
gizmos.rs Add AXES iterators for Dir types (#13305) 2024-05-09 23:30:44 +00:00
grid.rs Contextually clearing gizmos (#10973) 2024-04-23 00:16:12 +00:00
lib.rs Contextually clearing gizmos (#10973) 2024-04-23 00:16:12 +00:00
light.rs Add basic light gizmos (#12228) 2024-03-03 18:50:46 +00:00
line_joints.wgsl Gizmo line joints (#12252) 2024-03-11 19:21:32 +00:00
lines.wgsl Gizmo line styles (#12394) 2024-03-25 19:10:45 +00:00
pipeline_2d.rs Implement GPU frustum culling. (#12889) 2024-04-28 12:50:00 +00:00
pipeline_3d.rs Implement GPU frustum culling. (#12889) 2024-04-28 12:50:00 +00:00