Assets of The Season
Assets updates
Nav Mesh Vehicle AI

Nav Mesh Vehicle AI

Updated
2024-03-04
Free
Blueprints
Engine version
5.1
Download type
Complete Project
File size
15.7 MB
Registration required
Description

A simple but robust way to handle vehicle AI, using the engine's default navigation system. Work's directly with any vehicle pawn, using the same movement code as any player controlled vehicle. Multiplayer Ready.

This simple but robust AI system allow's any vehicle class, including custom one's, to move to a destination, going around obstacles that can even change at runtime, as long as it affect's the nav mesh. Very easy to implement using a simple actor component that can be used to set different settings, like a max speed multiplier to a target destination acceptance radius and other performance settings. (See last screenshot for all the options).

 

Update 1: Added out of the box support to simple vehicle pawns, using the simple vehicle component.

 

Update 2: Forward obstacles detection added. The vehicles now try to compensate detected obstacles in front of them by adjusting their throttle. This works for any actor that has the correct object type assigned, including other vehicles.

 

Update 3: Better detection and responses between vehicles, "road" nav modifier so vehicles can prefer a specific path and added 2 more move to modes, loop through a set of path points and a follow target where the vehicle follows a target actor.

 

Update 4: Added path offsetting so vehicles can distance themselfs from walls and obstacles, without needing to change any settings in the nav mesh radius.

 

Technical Details

Features:

  •  Works with any vehicle pawn, only requiring a few code changes (See bellow for a short tutorial);
  •  Makes use of the normal player controlled code and settings of the vehicles, like physics, engine curves, tire settings, etc...;
  •  Works with the engine's default nav mesh system, like any other AI pawn or character (See important note bellow);

 

Number of Blueprints: 6 (2 main blueprints and 4 used for testing scene and test vehicle).

Input: None, since it's a AI system.

Network Replicated: Yes.

Supported Development Platforms: Windows, Mac

Windows: Yes

Mac: Yes

Comments
Comments is not yet
Add Comment
Please register
Other interesting assets