How would you separate your 3D terrain into different areas?

I want to separate the terrain of my RTS game into areas like forests, fields and roads. These areas are more than for aesthetic purposes since they will affect gameplay like by changing a unit’s speed. I can’t use tags or layers directly on the terrain because multiple areas will be on the same object. I can’t use the polygons on unity’s navmesh because I made my own pathfinding system.

What would be the best way to define the areas on my map? I thought of two options but tell me if you have something better in mind.

  1. Painting different textures with each one representing an area type.

  2. Creating a new mesh with each polygon being a node with the area’s information.

Let me know what you think, any sort of input is greatly appreciated. Thank you!

You could do a giant trigger box collider on an empty object. OnTriggerEnter/Exit or OnTriggerStay set your biomeVar = Forest or Desert or something.

We use A* Pathfinding project but we have painted info ontop of the navmesh for stuff like that

1 Like