Offsetting aiPath shape?

Hi how can i offset the aipath shape ? Iam currently developing in a 2,5d topdown world and i would like to offset the size to fit the sprite size.

But all my sprites are centered to the bottom which leads in aipath being offset all the time, because that circle is always centered.

image

Thank you!

EDIT: Also the sprite ordering is based on object transform position, which should be the bottom then. And if i take aipath onto a child, i need to move the rigidbody etc as well. i wouldnt like this to happen. tbh.

Hi

This is not possible at the moment. I would strongly suggest that you make the pivot be in the center of your character as that will simplify a lot of things. Just the rotation code would become a lot more complex and slower if it had to rotate around an arbitrary point.

If you need the sprite’s position to be different you can add the sprite to an offset child object instead.