Move around position
#1

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
Reply
#2

Use GetPointInFront2D for Circle
PHP код:
GetPointInFront2D(Float:x,Float:y,Float:rz,Float:radius,&Float:tx,&Float:ty);
xcenter of the circle
rz 
angle 
3DTryg:
https://sampforum.blast.hk/showthread.php?tid=591010
Reply
#3

Quote:
Originally Posted by AbyssMorgan
Посмотреть сообщение
Use GetPointInFront2D for Circle
PHP код:
GetPointInFront2D(Float:x,Float:y,Float:rz,Float:radius,&Float:tx,&Float:ty);
xcenter of the circle
rz 
angle 
3DTryg:
https://sampforum.blast.hk/showthread.php?tid=591010
Thanks, this is all I wanted.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)