16.05.2015, 10:24
Thank you very much what you have written to me.
I found the right formula for your arrow.inc. The result was he was looking for. Method found. Decided:
Thanks!
I found the right formula for your arrow.inc. The result was he was looking for. Method found. Decided:
PHP код:
stock Float:GetAngleYFromPoints(Float:p1[3], Float:p2[3]) {
p1[0] -= p2[0]; //x
p1[1] -= p2[1]; //y
return (360.0 - atan((p1[2]-p2[2])/floatsqroot(p1[0]*p1[0]+p1[1]*p1[1])));
}