Incorrect comments in Mesh::Box code? #4429
Unanswered
dariuswiles
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm new to Bevy and wish to create a simple mesh. I started to base it on the Mesh::Box code, but I think some comments within the code that creates the vertices and indices are wrong. The comments state the faces being defined are Top, Bottom, Right, Left, Front and Back (in that order), but taking Front as an example:
I would expect this to the Top face as all four vertices are
sp.max_y
and Bevy uses a Y-up coordinate system (see #1979). Based on the code, and testing it with a default camera with one face at a time commented out to see which does not get rendered, I believe the correct ordering of faces is: Front, Back, Right, Left, Top, Bottom.Are the code comments wrong, or is it just me that's confused about which way is up. 😕
Beta Was this translation helpful? Give feedback.
All reactions