jfahrenkrug / VertexHelper

Lets you graphically define vertices of sprites for Box2D and Chipmunk bodies/shapes.
http://springenwerk.com
BSD 3-Clause "New" or "Revised" License
242 stars 68 forks source link

Box2d output should be counter-clockwise. #3

Open favoyang opened 14 years ago

druidLike commented 12 years ago

Someone pointed out that ONLY when you 'Scan' for the vertices that winding output incorrectly shows clockwise when it should be counter-clockwise.

flyingninjas commented 12 years ago

I was gettings this error:

Assertion failed: (area > 1.19209290e-7F), function ComputeCentroid, file /cocos2d-iphone-2.0.tar/external/Box2d/Box2D/Collision/Shapes/b2PolygonShape.cpp, line 115.

until i reversed the points. I recommend just adding an button or something to reverse them.

Anyway, this app is very useful, thanks!