Merging Fixtures

Topics: Developer Forum
Feb 5, 2012 at 9:08 PM


I have a terrain generated from tiles. At this moment one level consists of 350 bodies with their fixtures. Could I merge somehow selected bodies or fixtures to reduce their amount?

Feb 8, 2012 at 2:55 PM

I don't see how you can "merge" bodies (think physical entities like in the real world) but surely there is no problem merging fixtures. Actually a body can have unlimited fixtures so you'd rather add the fixtures to one single body. Also Farseer has some examples of more complex composition of polygons like union, intersection and difference in the testbed.