Quick BayazitDecomposer Question

Nov 22, 2011 at 8:09 AM

How expensive is this process?  If I wanted to create a collection of bodies that uses this to define the collision, would you recommend I just store the list of vertices after the first Bayazit call, then use those vertices repeatedly after that?  Thanks.


Nov 22, 2011 at 2:51 PM

It is noted in the documentation that the call is somewhat expensive:

Note: It is recommended that you don’t use the tools as part of your game loop. Run the tools once when the game starts and save the data for later. The tools are not 100% reliable and may crash or give unusable output on invalid input.

Nov 23, 2011 at 12:18 AM

Thanks! I must have overlooked that section of the documentation.