Game Development Reference
In-Depth Information
b2PolygonShape triangle;
triangle.Set(vertices, count);
And the vertices must be added counterclockwise to the array. Meaning, if we add the top
vertex of the triangle first, the next vertex must be the one to the left.
Once all the elements are in place, the debug draw looks like this:
Search WWH ::




Custom Search