Hi everyone,
I've been using Box2d in a few projects, and have written a graphical Java-based editor to help me create models and shapes.
Problem is when I create edgechain shapes I inevitably end up with the vertices in the wrong order, and my other objects pass through their edges and get stuck inside the edgechain shape. I picked up by reading the forums that shape vertices must be defined in clockwise order, and edgeshapes must be defined in counter clockwise order.
Does anyone know a programmatic way to determine if the vertices are in the correct order?
Thanks!
I've been using Box2d in a few projects, and have written a graphical Java-based editor to help me create models and shapes.
Problem is when I create edgechain shapes I inevitably end up with the vertices in the wrong order, and my other objects pass through their edges and get stuck inside the edgechain shape. I picked up by reading the forums that shape vertices must be defined in clockwise order, and edgeshapes must be defined in counter clockwise order.
Does anyone know a programmatic way to determine if the vertices are in the correct order?
Thanks!