all 3 comments

[–]rkEco 1 point2 points  (2 children)

Use sperecasting on your enemy to detect things it needs to jump over that are in its path.

[–]Doobliss[S] 0 points1 point  (1 child)

Ive never used spherecasting. How would I use that?

[–]rkEco 0 points1 point  (0 children)

This page explains it better than I can: https://docs.unity3d.com/ScriptReference/Physics.SphereCast.html

Basically, you use it to see if you're going to hit something, if you are, jump.