- Home /
Parent Collider fitting many child objects?
I am trying to figure out how to make a roads and buildings collidable with just one collider, is there not a way to just use the objects size/shape as the shape of the collider?
Answer by CaioRosisca · Oct 18, 2012 at 03:32 AM
You can add a Mesh Collider..so it will use the objects mesh to create the collider's shape
I tried adding mesh collider and my character still walks through(character has capsule collider). Do I need to do anything else to make it work besides adding it as component of parent?
No, if both objects have a collider then shouldn't be able to intersect. $$anonymous$$ake sure it has the objetcs correct mesh in the $$anonymous$$esh Collider tab..
Yea, that is the thing... it is multiple objects, so it is many different meshes... Not sure what to do :(
The parent of all objects is just a empty object, not sure if that would make a difference.
You have to apply the mesh collider to each one of the objects(which has a mesh)..and not to the parent..you can select them all tho and add it to all of them at once..just selectthem all and go to the tab Component>Physics>$$anonymous$$esh Collider
Your answer

Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Need help with some OnTrigger Scripting 2 Answers
How to rotate collider? 1 Answer
Unexpected behavior between parent/child rigidbodies 0 Answers