I have two sprites - center (grey box) and target (red box)
target is moving with simple events using WSAD keys (no behaviors)
center is always lerping to target.XY and anglelerping to target.XY
speed of both lerps is based on distance(center.XY,target.XY)
It's fine in the way it works, but I don't like it when it comes to corners.
here distance A is always the same, so center is lerping to target with the same speed
but here distance B ? A and when target is in that area center speed's up and all other things I have looks "boosted".
My question is, how can I limit target distance to move only within green circle and only on the edge of that circle (blue stroke) using WSAD keys.