Download

AI move to specific location - flying unit

Hi.

I created a waypoint system and when using a simple move to node, the AI goes to the point however on the floor.
The point is actually 400 units above the floor but it goes to the point only on the floor itself on the navmesh.

How can i get the AI to go to the exact location in the air. Its a flying unit.

After doing research i discovered the approached some use is to not actually use AI but instead thrust a flying object and change its rotation depending on where the waypoint is.
To me this is overkill for what i wanted to achieve.

Instead i spawn invisible walls that affects only the navmesh creating “air pockets” from the ground to the desired height. Works for what i needed.