- Home /
Under what circumstances are compound colliders created?
I know that compound colliders are created when there are child colliders of a rigidbody. The example of a gun provided in the docs shows the parent rigidbody as a normal (non-kinematic) rigidbody operating with the physics engine (gravity, etc.), and the child colliders on the ammo mag, etc. are not triggers. I'm looking for more delineation about whether a compound collider is created under other circumstances.
Specific circumstances:
The parent rigidbody isKinematic. Do child colliders create a compound collider?
The child collider(s) isTrigger. Do isTrigger colliders that are children of a rigidbody create a compound collider?
I need to understand this more thoroughly as I use lots of Trigger Colliders as children of dynamic rigidbody objects for things like AI, detection range, etc. The only way I've found so far to keep the Trigger colliders from combining (they need to be separate to accomplish their purpose) into one unintended compound collider is to attach a kinematic rigidbody to each child trigger collider. This appears to tell the dynamic rigidbody parent that these colliders shouldn't be combined... or at least that is what I think is happening...
While I understand this appears to violate the rule "don't parent a rigidbody to another rigidbody", I think this rule is really "don't parent a dynamic normal rigidbody to another dynamic normal rigidbody". Just guessing, but I could use some clarification from people who know.
Your answer
Follow this Question
Related Questions
Rigidbody bounce or character controller istrigger issues 0 Answers
Get all child not working? 1 Answer
Activate physics when animation ends 0 Answers
Compound Collider Issue 0 Answers