- Home /
Mass Placed Trees Not Colliding
I have a tree set up with a capsule collider and everything. When I drag the tree in from the assets panel it works perfectly fine and everything, but when I try to use the "Mass Place Trees" option, it does not work. I can walk through every tree.
I have checked to be sure and the only tree that is in the terrain's script is the tree that I made, but for some reason I can still walk through every one.
I'm sure it's something little I managed to miss, but I really cant find it. Any help would be great.
Thank you.
So (just checking) are you using your tree as a model for your terrain? I mean have you added it as a tree to your terrain? Because if it has a collider, I would think that collider works for every copy if you used the tree placing tool in the terrain. But it seems like you aren't actually using a Unity terrain (you said 'terrain's script').
I am using a Unity terrain. I created the terrain, then on the right side it has a tab, "Terrain (Script)", Then when you open that there is a little button with a tree on it. I have my tree prefab as the only one there.
Ah, I see it now (I'm looking at Unity). Then one more thing: see where it says "Terrain Collider"? Is "Create Tree Colliders" checked? (It's interesting because I had the same problem long ago with a willow tree that had a collider but when I put it into the terrain it lost the collider.)
You need to go into the tree asset in your imported assets and give the tree a cylinder collider(or at least that's what I do to decrease the amount of lag tree colliders create) and then set the cylinder to be the size of your trees.
I did all of the above. I made sure every box I could find was correct. And by the way, thank you for your time and help with this. This is really confusing me. I even tried using the brush to sort of "paint" the trees on if you know what I mean, and that doesn't work either. Only placing a single tree at a time works.
@tw1st3d, I said in the very first sentence that I already did that.
Your answer
Follow this Question
Related Questions
Tree Child Collision Capsule not registering 1 Answer
How to get the collided tree ? 0 Answers
Child of FPSController cannot collide with anything? 0 Answers
Destroy Terrain Trees And They Collider 0 Answers
Terrain Trees with Custom Script 2 Answers