It looks like if I have more than 22 points in a loop shape, I hit the assert in b2BlockAllocator.cpp line 104 where it tries to ensure that you don't alloc larger than a 640 byte amount (as set by b2_maxBlockSize). The sizeof the b2FixtureProxy is 28 bytes, so in b2Fixture::Create when it allocates childCount times this, if I have 23 or more nodes that'll go past the block size limit.
Is 22 nodes intended to be a max cap on the number of points in a loop shape (as in, is it considered ludicrous to have this many)? Is changing b2_maxBlockSize a bad idea (making sure to also change s_blockSizes to support any larger amounts)? If the answer to both is yes, how would you suggest working around this, just divide the shape up into smaller node sized ones? Thanks.
Is 22 nodes intended to be a max cap on the number of points in a loop shape (as in, is it considered ludicrous to have this many)? Is changing b2_maxBlockSize a bad idea (making sure to also change s_blockSizes to support any larger amounts)? If the answer to both is yes, how would you suggest working around this, just divide the shape up into smaller node sized ones? Thanks.