Coder Social home page Coder Social logo

unity-pathfinding's Introduction

Pathfinding

Find paths in Unity Tilemaps with A* Search based off Amit Patel's implementation.

Download and Import the Pathfinding package then use AStar.FindPath() like so:

List<Vector3> path = AStar.FindPath(tilemap, startPos, endPos);

unity-pathfinding's People

Contributors

sturdyspoon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

unity-pathfinding's Issues

Possible to list all tiles that returned path passes through?

Hello,

I've been playing with the library and scripts over the last couple of days and overall its been fun - very solid path finding for 4-dir and 8-dir, useful for a lot of applications I have in mind.

I have not been able to find a way to cleanly generate a list of all the tiles that the returned path passes through. I can see all of the nodes and pass those around for various interactions, but now I am needing a list of each individual tile that the path passes through. Do you have any suggestions for how to go about this?

Either by editing existing functions or somehow iterating over the generated path to pull out the tiles it passes through (possibly very inefficient)? It seems that of course each 'correct' tile in the path has been evaluated by the algorithms at some point and deemed 'being on path,' but I am having trouble identifying where those are. If I could I could just add them to a list of 'on-path tiles', removing duplicates if need be if the obvious solutions create doubles.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.