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

КОМЕНТАРІ • 7

  • @mizuchientertainment
    @mizuchientertainment Місяць тому +1

    Thank you for this great tutorial!!!

    • @tannos2023
      @tannos2023  Місяць тому

      Thank so much your feedback Mizuchi Entertainment
      I am glad if that was helpful.
      Have a nice day and happy creation 😊

  • @krissosful
    @krissosful 8 місяців тому +1

    Very nice demonstration👍👍💥

    • @tannos2023
      @tannos2023  8 місяців тому

      Thans so much @krissosful 🤗

  • @nightcrow578
    @nightcrow578 8 місяців тому +1

    this dude save my life!

  • @adrianbanica7434
    @adrianbanica7434 8 місяців тому +1

    Thanks! Any chance you could follow up with how this whole thing interacts with the NavMesh system?

    • @tannos2023
      @tannos2023  8 місяців тому

      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.