How to increase number of vertices of polygon (BOX2D)

edited December 2014 in Library Questions

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 :)

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?

Sign In or Register to comment.