which kind of Collider Compound Collider belong to?Static Collider or Dynamic Collider?

hi, guys, i am learning about Collider, but now i don’t understand a point about Compound Collider, which Collider it belongs to? Static Collider or Dynamic Collider?

Static Collider without Rigidbody, and Dynamic Collider with Rigidbody. While it looks like that Compound Collider Combine them up. The Root GameObject in the hierarchy is Added Rigidbody component without Collider, and the child GameObject is Added Collider without Rigidbody.

As far as i know, Child GameObject belongs to Static GameObject, because there is no RigidBody Added. While Static GameObject isn’t encouraged to move. So it makes me confused, according to document, it seems that unity encourage Compound Collider to Move.

Who can explain it to me? thx!

Here are some hints:

  • A Rigidbody “owns” all colliders in its own GameObject and all the colliders in any of its children.
  • Any collider in a GameObject that does not have a Rigidbody in his GameObject nor in any of its parents is a static collider.
  • Any collider in a GameObject that has a Rigidbody in his GameObject or any of its parents is a dynamic collider and “belongs” to that Rigidbody.
  • When a Rigidbody has several Colliders along its hierarchy, it is said that the Rigidbody has a Compound collider. All these colliders compose the collision geometry for that Rigidbody.
1 Like

@Edy , Thx very much! You help me solve problem once again, you’re such a great guy !

1 Like