facingangle to point on map
#1

How it is possible to set rotation of a object to a coordinates?
Reply
#2

Trigonometry
Something like
[pawn]
new Float:angle = 360.0 - atan2(target_x - own_x, target_y - own_y);
Reply
#3

ok thanks i thougt at trigonmetry but i didn't know the function + rep for you guy
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)