I searched all the help files in dpp and couldn't find it!
i want to calculte the angle between two points
i made this function but it didnt work:
function anglexy(x1#,y1#,x2#,y2#)
ret# = atan(x1# + x2# / y1# + y2#)
endfunction ret#
its a 3d game i made i want the enemy to look at the
hero so i passed the following variables:
x1 = x position of the hero
y1 = z position of the hero
x2 = x position of the enemy
y2 = y position of the enemy
and it gave me a constant value
any ideas??
<edit>
does this method work if one or more of the values is less
than 0?????