The question is answered, right answer was accepted
How to get all child Colliders as single Collider
I have an object with a RigidBody, and it has several children that each has it's own Renderer, Material, Mesh, and BoxCollider (Yes they are ALL box colliders, nothing else) - How would I go about grabbing all of these colliders as a single collider in a C# script? I've tried a few things such as making the entire object a single mesh with a mesh collider, but it doesn't work the way I need it to.
TL;DR: I have a RgidBody with a Compound Collider. How to get collider as single object in C#?
Answer by toddisarockstar · Dec 02, 2015 at 03:41 AM
delete the colliders from the children and add multiple colliders to the parent. would that help?
If that's the only way then that's fine, a little depressing but whatever.
as far as i know there isnt a convenient way to get OnCollisionEnter from children. the only other option as far as i know would be to give all the children individual scripts that report back to the parent script...it would work....pry not worth the trouble.
Follow this Question
Related Questions
c# jumping isn't consistent, please help 0 Answers
I added Rigidbody to my cube and now it goes super fast when i move! 0 Answers
Question about NavMesh and Rigidbody 0 Answers
How to apply a force at certain point of an object? 0 Answers
C# keep previous velocity while jumping, previous solutions not working 0 Answers