Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Practical Game AI Programming

You're reading from   Practical Game AI Programming Unleash the power of Artificial Intelligence to your game

Arrow left icon
Product type Paperback
Published in Jun 2017
Publisher Packt
ISBN-13 9781787122819
Length 348 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Micael DaGraça Micael DaGraça
Author Profile Icon Micael DaGraça
Micael DaGraça
Arrow right icon
View More author details
Toc

A* search algorithm


Unpredictable situations usually lead to a large amount of hours coding the extensive possibilities that the characters have. For this reason, it was necessary to think on a new way to create a better pathfinding system, where the characters could analyze the surroundings for themselves in real time and choose the best path to take. One method that has become very popular for this effect is using theta algorithms, which allows the characters to constantly search for the best path without it being necessary to manually set which points they need to follow.

The Theta search algorithm (A*) is a widely used search algorithm that can be used to find solutions for many problems and pathfinding is one of them. Using this algorithm to solve pathfinding problems is very common due to the uniform-cost search and heuristic search. The Theta search algorithm examines every corner of the map to help the character determine if it is possible to use that location or not, while trying...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image