Getangle: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
getangle <x> <y> | getangle <return> <x> <y> | ||
Get's the angle formed by the displacements <x> and <y>. In most languages this function is known as arctan2. | Get's the angle formed by the displacements <x> and <y>. In most languages this function is known as arctan2. | ||
Revision as of 16:50, 7 March 2008
getangle <return> <x> <y>
Get's 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.