Unreal Engine AI Vehicle Tutorial 2: Avoiding Obstacle System
jourverse jourverse
7.4K subscribers
3,395 views
170

 Published On Jun 12, 2024

In the second part of our Unreal Engine AI Vehicle tutorial series, we delve into the implementation of the A* algorithm for obstacle detection and avoidance. This tutorial will guide you through detecting obstacles, mapping them with a grid, and creating new paths for the AI vehicle when it encounters obstacles.
Playlist:    • Vehicle AI Unreal Engine  
A* Algorithm Plugin: https://drive.google.com/file/d/1bEcp...
Project Download:   / project-file-ai-105811761  

While Unreal Engine’s default Nav Mesh system is powerful and suitable for many standard AI navigation scenarios, this custom approach offers significant advantages for the vehicle:
-Customization: Tailoring obstacle detection and path creation to specific needs.
-Dynamic Adaptability: Mimicking human-like decision-making, where awareness of the entire environment isn't assumed, can lead to more dynamic and realistic AI behavior.
-Optimization: Efficient updates and selective tracing enhance performance in large-scale or real-time generated environments.

If you enjoyed this video, please give it a thumbs up and leave a comment below. Don’t forget to subscribe to my channel for more Unreal Engine tutorials. Thanks for watching!
Chapters:
Intro: (0:00)
Add A* Algorithm: (0:44)
Detect Obstacle: (9:23)
Map Obstacle with Grid: (18:52)
Debug Array's Index: (43:08)
Find Start Point: (49:25)
Find Goal Point: (55:10)
Create New Spline: (1:05:00)
Vehicle Arrived at Goal Point: (1:16:38)
Overlap Obstacle Detection: (1:23:40)
Goal Point can't reach: (1:32:05)
Result: (1:39:04)

show more

Share/Embed