Home Forums General Discussion Turn-based usage

This topic contains 1 reply, has 2 voices, and was last updated by  prime 3 days, 15 hours ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #6699


    Can Rain give me a list of walkable nodes X distance from a certain position? Can I access additional information about those nodes? The idea is to visualize possible movement areas in a turn based game to avoid having to maintain my own separate movement grid from the pathfinding grid.



    The navmesh isn’t grid shaped, and probably wouldn’t provide useful information in this scenario. Instead, you could select a number of possible destinations (use a grid if you want) and run Navigator.GetPathTo() to determine if a valid path exists to each of your destinations. The pathfinding operation can potentially run for a while, so I would probably spread the calls out and do one destination per frame. You should limit the total number of pathfinding steps as well, depending on the overall size of your graph and the distances you are willing to allow. (100 is an ok default usually.)

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.