AS3 pathfinding (astar/a star/a*) algorithm

Source: Internet
Author: User

In the AS3 Advanced Animation programming book, there is a chapter to explain the Astar algorithm, originally wanted to write their own understanding, found in the garden a very good. Thank you for being under the Banyan tree. Net

The author's explanation for the cost is a little unclear ... I was just starting to get a little dizzy.

The meaning of the book is:

Usually the cost of finding a way is represented by the F=G+H formula.

Where G: Represents the price of a at a point from the start of the pathfinding to the path of the pathfinding.

H: Represents the price between point a above and the end of the Seek road.

F: Represents the total cost from the start of the pathfinding to the end point.

This is f=g+h, the explanation of this formula.

Address is: http://www.cnblogs.com/yjmyzz/archive/2010/07/22/1782328.html

AS3 pathfinding (astar/a star/a*) algorithm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.