Documentation Clarification: Triangles / order of vertices #374
Unanswered
jmcauley04
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey team,
I'm fairly new to game dev and Rust and Bevy so I, first, just wanted to say I'm very much enjoying the Rapier2d plugin and will be recommending it to my friends and colleagues as a must-have for their development.
I ran into an issue while working on environment collision and I think I understand why but I'm not able to find verification that this is the issue.
The triangle on the left has its vertices defined in a counter-clockwise order while the triangle on the right has its vertices defined in a clockwise order:
The triangle on the left behaves how I hoped it would while the triangle on the right acts less reliably. I think this is because the normal directions are associated with the order that the vertices are defined and so when defined counter-clockwise, the boundaries want to push into the triangle.
Being fairly new to game development, I suspect that if I'm correct about why it's occurring that it may be common knowledge amongst experienced game devs, but I wonder if this could be included on the bevy plugin documentation.
Thanks,
Michael
Relevant points in the code
Relevant code:
Beta Was this translation helpful? Give feedback.
All reactions