I’ve a variety of GameObjects with 2 youngster GameObjects:
There’s a a BoxCollider2D on each the Sprite youngster and the Phrases youngster. The mum or dad has a Composite Collider 2D on it, which makes use of these BoxColliders. It routinely calculates good polygon colliders, and is working nice.
My GameObjects can typically nest. You possibly can see an instance within the hooked up photos, the place a Snake GameObject has a Zebra GameObject nesting beneath it.
The Composite Collider second for the Snake will not be selecting up on the Field colliders for the grandchildren nodes (Zebra/Sprite and Zebra/Phrases). I’m guessing that is as a result of a Composite Collider will solely mix colliders from Field Collider 2D or Polygon Collider 2D, and never from one other Composite Collider.
Is it attainable to have a Composite Collider (or another collider aggregator) decide up the colliders for not solely youngster nodes but additionally grandchildren nodes? And nice grandchildren, and many others. My entire knowledge mannequin presently makes use of nesting of GameObjects, so it might be nice to have the ability to proceed with that whereas additionally benefiting from a Composite Collider. Thanks!