{"name":"BIS_fnc_sceneRotate","title":"BIS fnc sceneRotate","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_sceneRotate","revid":348200,"updated":"2023-11-08T11:40:10Z","groups":["Scenes"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"Compute new object coordinates from given center and angle from MOTION BUILDER","syntaxes":[{"syntax":"[center, centerAngle, angle, iniPosition] call BIS_fnc_sceneRotate","params":[{"name":"center","type":"Array","description":"center position from MOTION BUILDER","type_expr":"Array"},{"name":"centerAngle","type":"Number","description":"rotation of center from MOTION BUILDER","type_expr":"Number"},{"name":"angle","type":"Number","description":"rotation","type_expr":"Number"},{"name":"iniPosition","type":"Array","description":"inital position","type_expr":"Array"}],"returns":{"type":"Array","type_expr":"Array","description":"array in format [[PositionX,PositionY,PositionZ], Rotation]"}}],"examples":[{"code":["[[1337,1337,0], 42, 120, [200,200,0]] call BIS_fnc_sceneRotate; // returns [[1337.15,1334.18,0],-258]"]}],"see_also":["BIS_fnc_sceneCreateSoundEntities","BIS_fnc_sceneSetBehaviour","BIS_fnc_sceneGetObjects"]}