How to use Tree Collider / colliders on Unity Terrain system
Вставка
- Опубліковано 28 жов 2023
- How tree colliders works in Unity3D and how to use in a right way
You can put trees in Unity with 2 basic way to th basic terrain
1. Put trees with "Paint trees" option. In this case Unity can handle only the basic colliders (Box, Sphere, Capsule)
When stick the trees on the terrain system with "Paint trees" options, then the mesh colliders will not working.
2. Put trees directly in the Scene wich can see in "Hierarchy" window. This case Unity will handle all colliders with the mesh collider too.
But be carefull, this methode use more resources from CPU. The mesh colliders need more power to calculate.
The colliders need put in to the "Tree" prefab. So if you have an Blender, FBX or other 3D modell, firts create prefab from this.
Add LOD component. Then add collider. For the collider no matter wich level are, on the root or prefab child, this will work. You can add more then one collider for one prefab.
#unity #unity3d #indiegame #shader #shadergraph #tutorial #tutorials #tips #tricks #gamedev #gamedeveloper #gamedevelopment
Thank you for this great tutorial!!!
Thank so much your feedback Mizuchi Entertainment
I am glad if that was helpful.
Have a nice day and happy creation 😊
Very nice demonstration👍👍💥
Thans so much @krissosful 🤗
this dude save my life!
Thanks! Any chance you could follow up with how this whole thing interacts with the NavMesh system?
Hi Adrian,
I not use much NavMesh component, better like, using raycast + collider calculation in script. Not perfect but not need all time regenerate the navmesh on the map.
In the future I will try do some kind of tutorial from NavMesh.