About AIPath Position.Y


Can I use Gravity none for AIPath (for 3D games) and have the character get the Position.Y value from the path data created by the Seeker? (green line)

AILerp does this but I plan to use AIPath for RVO. It doesn’t make sense to use gravity with raycast to snap to the terrain every frame when path data is already there.



The path data is in general not accurate enough to use for character placement. I strongly recommend using a raycast, since physics colliders have more precision.

You can get the point the agent is currently moving towards using ai.steeringTarget.

Thanks this solved exactly what I needed, my terrain is not too hilly, so it is okay for me that they follow the green line. I didn’t want to spend the extra cost for the raycast

1 Like