Add a bounding box gizmo#8468
Conversation
|
Adding it to the scene_viewer is a great idea, but I think it would be nice as a standalone example too. Or maybe just use it in the gizmo example? |
nicopap
left a comment
There was a problem hiding this comment.
Yes please, this is very welcome. A future improvement could be to do the same with the Node struct.
|
the difference between a bounding box and a cuboid is not clear enough, why do we need both? |
|
I've removed |
nicopap
left a comment
There was a problem hiding this comment.
Widely useful, if this existed earlier it would have saved me a few headaches.
|
I love the following function so much, I've definitively needed something similar in personal projects. Maybe it could be implemented as a bevy/crates/bevy_gizmos/src/lib.rs Lines 201 to 204 in 9e41e7a |
Head branch was pushed to by a user without write access
Objective
Add a bounding box gizmo
Changes
AabbGizmocomponent that will draw theAabbcomponent on that entity.GizmoConfigresource.TransformPointtrait to generalize over the point transformation methods on various transform types (e.gTransformandGlobalTransform).Gizmos::cuboidmethod to accept animpl TransformPointinstead of separate translation, rotation, and scale.