- Home /
How to make buildings so can't walk through??
I have some building and road models but my character goes right through them. I tried using mesh collider but it didn't do anything... I probably don't have it set up correct r need something else?
Answer by Noah-1 · Oct 15, 2012 at 02:21 AM
You're probably adding the mesh collider but not adding the mesh to the component, check the mesh collider docs: Mesh Collider
if it does not work, try this:
Go to GameObject---Create empty
Then add a collider to the empty GameObject: go to Component---->Physics--->Box Collider
Then just drag your box into the building and re size it and make it the same size as the building,
Well what I was trying to do was use one collider for all the buildings and one for all the roads. Is there no way to make them fit over the object as is? I have all buildings as child of empty object and all roads child of another empty object, and put mesh collider each.