Just need some ai info.

I would like an AI with two different axis. One on the X axis. One on the Y axis. I would like the AI to look at the player separately on both axis. Also I only want it to work within a certain radius. And the last thing, I know how to apply gravity but how would I do this without ignoring colliders.

transform.position.y -= gravityValue * Time.deltaTime;

Flatten your calculations to the plane around each axis (set .x or .y of a copy of the target position to zero) and if (playerposition - myposition).magnitude > radius don’t do anything at all.

To apply gravity without ignoring colliders use rigidbodies with Use Gravity checked.

Edit: You can directly set rigidbody velocities so they’ll go however fast you want but also respect collisions.