logo80lv
Articlesclick_arrow
Research
Talentsclick_arrow
Events
Workshops
Aboutclick_arrow
profile_loginLogIn

A Custom AI Navigation on a Moving Actor System Made in Unreal Engine

The system was made with UE's Blueprints for a Mortal Engines-inspired game.

Reddit user and Game Developer known as CommanderHerpDerp01 has demonstrated a complex system that allows the AI to navigate on a moving actor. According to the creator, the system was made in Unreal Engine with Blueprints for a Mortal Engines-inspired game idea the developer is working on at the moment.

To make the AI navigate the roads of the platform, the developer wrote a custom grid-based A* pathfinding algorithm, based on a method shown in this series of tutorials, that the AI uses based on paths and ladders on the crawler they're attached to. All paths and ladders are stored as a grid of vectors, each with a reference of what connections each grid tile can attempt, meaning that ladders allow the AI to move up and down the Z-axis while paths do not.

To prevent AI actors from falling from the crawler, the creator attached them to the component used as the ''root'' for construction when they're spawned in, then only ever moved via relative location.

All the walkable surfaces like buildings, paths, and ladders, can be added and removed in real-time. The author commented that the most challenging moment was getting the order of calculations correct and storing all the data in arrays neatly.

The crawler itself, said the developer, is a custom pawn that aligns itself to the surface through traces from its calculated extremities, based on where blocks are attached to it, and takes its rotation from those same traces and the average of normals from the tracks calculations.

"There's a lot of work to do on the vehicle movement to make it look more physical because I'm faking everything but it's getting there!" commented the author.

In the future, the developer plans to move the system to C++ and share more work-in-progress videos to better showcase this amazing system. You can follow the development process by visiting CommanderHerpDerp01's Reddit page.

Join discussion

Comments 0

    You might also like

    We need your consent

    We use cookies on this website to make your browsing experience better. By using the site you agree to our use of cookies.Learn more