Getangle: Difference between revisions
No edit summary  | 
				Hendricks266 (talk | contribs) No edit summary  | 
				||
| Line 1: | Line 1: | ||
'''getangle''' <return> <x> <y>  | '''getangle''' <return> <x> <y>  | ||
Returns the angle formed by the displacements <x> and <y>. In most languages this function is known as arctan2.    | |||
NOTE: To make one actor face another some subtraction is involved. see [[make one actor face another]] in the examples.  | NOTE: To make one actor face another some subtraction is involved. see [[make one actor face another]] in the examples.  | ||
Revision as of 10:34, 11 February 2012
getangle <return> <x> <y>
Returns the angle formed by the displacements <x> and <y>. In most languages this function is known as arctan2.
NOTE: To make one actor face another some subtraction is involved. see make one actor face another in the examples.