A* Pathfinding Project

AI object shoots in Y (vertical) direction?


#1

hello, im following the tutorial the author posted on youtube, im following him step by step but idk why the AI just shoots upwards, regardless of where the target object is… what’s the setting that i got to tweak for this?
btw its a 3D scene and not a 2D


#2

Hi

I would guess that the raycast used to position the character on the ground hits the character itself. Make sure that the ‘ground mask’ field does not include the layer that the agent itself is in.


#3

thank you, worked now. was just as you said :slight_smile: