PhysicsBody::createPolygon() Points problem

Hello,

I’m creating a physics polygon

PhysicsBody *p = PhysicsBody::createPolygon(points, count);
sprite->setPhysicsBody(p);

if I have six or less points it makes the intended shape. But when Insert more than six points it still draws six vertices but with point averages ( i think, im not sure). Is there a way to have more than 6 vertices in a physics polygon?

Its not about the points :frowning:
answer is here

“This means that every convex polygon is ok. But concave polygons have to be split into multiple convex polygons”

2 Likes