You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jondolf opened this issue
Mar 1, 2024
· 3 comments
· Fixed by #12334
Labels
A-GizmosVisual editor and debug gizmosC-FeatureA new feature, making something new possibleD-TrivialNice and easy! A great choice to get started with Bevy
Implement something similar for 2d. Honestly, I have no idea if this is desired/useful, but I could probably just implement it in this PR if that's the case.
#12211 added a gizmo for rendering the XYZ axes relative to a Transform (or impl TransformPoint). This is useful for 3D, but it'd also be useful to be able to draw just the XY axes in 2D. The 3D gizmo wouldn't look quite correct in 2D, and most other gizmo methods already have 2D variants.
What solution would you like?
Add an axes_2d method that renders the XY axes.
What alternative(s) have you considered?
Leave it up to the user, or use axes in 2D as well. It'd just look weird in 2D, because the arrows are 3D, and the Z arrow would probably look like a cross in the middle.
The text was updated successfully, but these errors were encountered:
# Objective
This PR addresses #12222 (Fixes#12222). Simple addition to add a 2D
axes gizmo.
## Solution
- Add a new method axes_2d which takes a transform and a case length and
then draws two arrows in the XY plane.
The only thing I'm not sure about here is taking a 3D transform as an
argument. It says in the transform comments that for 2D the z-axis is
used for ordering, so I figured I'd keep it that way?
---
## Changelog
- Add method axes_2d.
- Update arrow_2d to also calculate the tip length depending on arrow
length as in arrow.
- Add axes_2d to examples 2d_gizmos.
---------
Co-authored-by: Ben Lambert <[email protected]>
A-GizmosVisual editor and debug gizmosC-FeatureA new feature, making something new possibleD-TrivialNice and easy! A great choice to get started with Bevy
What problem does this solve or what need does it fill?
A follow-up item from #12211 by @mweatherley:
#12211 added a gizmo for rendering the XYZ axes relative to a
Transform
(orimpl TransformPoint
). This is useful for 3D, but it'd also be useful to be able to draw just the XY axes in 2D. The 3D gizmo wouldn't look quite correct in 2D, and most other gizmo methods already have 2D variants.What solution would you like?
Add an
axes_2d
method that renders the XY axes.What alternative(s) have you considered?
Leave it up to the user, or use
axes
in 2D as well. It'd just look weird in 2D, because the arrows are 3D, and the Z arrow would probably look like a cross in the middle.The text was updated successfully, but these errors were encountered: