Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Pathfinding in 3D (without NavMesh)

Discussion in 'Navigation' started by Zimaell, Jun 28, 2023.

  1. Zimaell


    May 7, 2020
    What logic should be in finding a path in 3D, without NavMesh, since the surface is a changeable terrain and other objects on it, re-baking when changing the terrain is quite expensive, and taking into account the fact that the same steps can be of different sizes, this is also not fits well in NavMesh.
    Of course, I'm talking about the complete code, I'm asking the logic itself.

    earlier I came across pathfinding in 2D, it’s certainly easier there, there are even scripts for finding paths, but I haven’t found it in 3D yet.
    pathfinding is needed for objects with constant gravity, that is, for example, for a character walking on a terrain (for example), as well as with added objects such as stairs or some blocks of different heights.

    I would appreciate any thoughts on this.