Move around position - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Move around position (
/showthread.php?tid=623469)
Move around position -
lollypap54 - 01.12.2016
So I don't know how to do one thing, because i didn't learn all the math yet. So I want to know, how to get circle corner position by giving 0-359 degrees ? Or maybe it's smoother way to do it in sa-mp? I want to do camera buttons (left/right), when you press those buttons camera moves around object in circle path, how to do it ?
Thanks for help
Re: Move around position -
AbyssMorgan - 01.12.2016
Use GetPointInFront2D for Circle
PHP код:
GetPointInFront2D(Float:x,Float:y,Float:rz,Float:radius,&Float:tx,&Float:ty);
x, y - center of the circle
rz - angle
3DTryg:
https://sampforum.blast.hk/showthread.php?tid=591010
Re: Move around position -
lollypap54 - 01.12.2016
Quote:
Originally Posted by AbyssMorgan
|
Thanks, this is all I wanted.