Moving the camera around a static spot (trigonometry help?)
#7

You need to work with the radius from the player, which is half the diameter of the circle you'd be making. You use the radius as the player is the central point of this circle.

You can then use this, with a timer or a loop to move the camera around the player. The difference being the timer will give you control over how fast the rotation is.

I found a tutorial, saves me writing one...

https://sampforum.blast.hk/showthread.php?tid=291910

EDIT: Also, if you instead get the 3 points of a triangle today atleast I think you'd be able to interpolate the camera around the player... although it wouldn't be a perfect circle.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)