mirror of
https://github.com/Teh-Dango/Sarge-AI.git
synced 2024-08-30 16:32:11 +00:00
3ac749d64b
This is the latest stable version of Sarge AI for Arma 3: Exile.
13 lines
317 B
Plaintext
13 lines
317 B
Plaintext
// In: [position,direction]
|
|
// Out: position
|
|
private ["_pos","_dir","_orgX","_orgY","_newX","_newY"];
|
|
_pos = _this select 0;
|
|
_dir = _this select 1;
|
|
|
|
_orgX = _pos select 0;
|
|
_orgY = _pos select 1;
|
|
|
|
_newX = (_orgX * (cos _dir)) - (_orgY * (sin _dir));
|
|
_newY = (_orgX * (sin _dir)) + (_orgY * (cos _dir));
|
|
|
|
[_newX,_newY] |