Unreal Engine AI Vehicle Tutorial 2: Avoiding Obstacle System

1,696
0
Published 2024-06-12
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: drive.google.com/file/d/1bEcpQ7EMsf3ncP39kD9igsgwg…
Project Download: www.patreon.com/posts/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)

All Comments (8)
  • @crazyguy7585
    amazing man that's is really helpful i love ur tutorial very impressive as always🥰🥰😍
  • @matematicher
    Ohh man! It will work for my project very well! Thank you for the video
  • @Silverjice
    This looks awesome ! have you ever done a published game until complition so far ?
  • Amazing tutorial. How scalable is this system? How many instances can be run before the game thread is bogged down? Keep on the good work!
  • @aryansingh1047
    Can you make Ladder with animation tutorials without casting node. I really need this tutorial ❤
  • @tlpue5
    or just use unreal's default nav mesh