Does anyone know how to increase maximum number of vertices for a polygon. Currently default value is 8 but I want at least 30 vertices for a polygon shape. Any help is appreciated :)
Yeah - that's defined in the variable b2_maxPolygonVertices, which you can freely update. Just be aware that upping that to 30 is probably going to kill your performance.
Thanks chinchbug for your reply. Can you kindly tell me how exactly to call this variable?
Is it available in box2d world i.e. box2d.world.b2_maxPolygonVertices?
Answers
Yeah - that's defined in the variable b2_maxPolygonVertices, which you can freely update. Just be aware that upping that to 30 is probably going to kill your performance.
Thanks chinchbug for your reply. Can you kindly tell me how exactly to call this variable? Is it available in box2d world i.e. box2d.world.b2_maxPolygonVertices?