- Home /
How to make trees impassable?
I did try putting mesh collider in it too. It just won't work. Can someone help me? I just walk through every trees.
Are you using the terrain system, or placing trees manually?
And what type of model are these trees (blender, fbx, 3ds?) or are you using unity tree creator? If they are models from another program be sure to check the box "Generate Colliders" in the inspector options for the model.
Answer by bpears · Dec 20, 2012 at 06:55 PM
Kind of sucks to do, but put box colliders around each one. Mesh colliders are only really useful for flat ground surfaces and boundaries, because on complex models they don't work too well, and that would make your game perform badly.
Tip: once you've created one box collider for one tree, just keep duplicating it and move it to the next one, so you don't have to keep sizing them.
It would be more efficient to make a prefab with the collider included
Your answer
Follow this Question
Related Questions
Box Collider on Trees Are Not Rotating When Painted to Terrain 1 Answer
mesh colliders moving when i press play 1 Answer
Colliders for pre-placed trees? 2 Answers
how do i make my modle solid? 2 Answers
adding mesh collider in run time slow? 3 Answers