- Home /
How do I get tree colliders working?
I recently started learning how to make terrains in unity so I might be missing a few things... I got a tree asset from the Rocky Hills Environment Light Pack and I used a tree which already had a mesh collider attached. When I manually placed it in the scene the collider worked fine but when I added it using terrain tools there was no collider. I tried using one method from an older question like this (terrain.GetComponent().active = false; terrain.GetComponent().active = true;) but apparently active isn't an attribute, has it's name changed? How do I fix this?
Answer by rhapen · Dec 16, 2020 at 12:54 AM
if the prefab has collider attached (make sure you use prefab not the model only) you have to just check under terrain settings that tree colider is checked. Works fine for me. https://docs.unity3d.com/Manual/class-TerrainCollider.html
I already had enable tree colliders checked, sorry I forgot to add that...
Answer by Spartikus3 · Dec 21, 2020 at 04:05 PM
This does not work fine for me and a lot of other people. I am using unity 2019LTS. All of my tree prefabs have colliders and not a single one actually works when you place the trees with Mass placement. There must be a setting that needs to be checked other than use colliders?
Your answer
Follow this Question
Related Questions
Unity tree colliders acting very strange 0 Answers
How can i get terrain data from Terrain.asset? 0 Answers
Characters Fall Through Blender Terrain 0 Answers
Terrain collider is inaccurate 3 Answers
Random tree rotations in tree painter 0 Answers