Hey Guys,
I kinda loving this community, right of the bat. Quite comprehensive.
Problem
I am making a game on unity3d and the camera is follow a character in Top-Down view (X-Z Plane). I would like the camera
to follow the player once he moves beyond a radius from the center of the camera. The camera should move at equal distance in such a way that the player is at the tip of circle.
Circle is something like this.
I would also like the camera to not to move when the player is inside the circle.
Approach
Hence to solve it, I thought I could use
x^2 + z^2 = r^2
where (x,z) are co-ordinates and r is the radius.
Could you guys guide me, as of how to accomplish it.
Your help is always appreciated.
Thank you,
kathir.