Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Terrain to Mesh

Discussion in 'Navigation' started by charanchaganti, Jul 19, 2022.

  1. charanchaganti

    charanchaganti

    Joined:
    Mar 16, 2022
    Posts:
    13
    Hi Everyone,

    I have created a terrain with some textures, now to place some tanks and other objects and to make them move on the terrain. I need to create a mesh and bake it to create a NavMesh so that I can move the tanks automatically based on the waypoints that I enter. Even though I added a mesh component to this terrain gameobject, I couldn't generate a mesh file. Please suggest how to create a mesh from this terrain and make the tanks move on this terrain

    Thanks in advance
    Charan
     
  2. warthos3399

    warthos3399

    Joined:
    May 11, 2019
    Posts:
    1,728
    You dont need to add a mesh to a terrain to have NavMesh, get rid of the mesh and NavMesh bake your terrain...
     
  3. charanchaganti

    charanchaganti

    Joined:
    Mar 16, 2022
    Posts:
    13
    Thanks for the reply
    How do we bake the terrain?
    Window > AI > Navigation > Object > Terrains
    and select bake
    is this the way?
    Please suggest

    Thanks in advance
    Charan
     
  4. warthos3399

    warthos3399

    Joined:
    May 11, 2019
    Posts:
    1,728