---
name: "BIS_fnc_sceneRotate"
type: function
status: ok
groups: ["Scenes"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_sceneRotate
revid: 348200
updated: 2023-11-08T11:40:10Z
---

# BIS_fnc_sceneRotate

*Function · Scenes · Arma 3 v0.50 · introduced in Arma 2 v1.00*

## Description

Compute new object coordinates from given center and angle from MOTION BUILDER

## Syntax

```sqf
[center, centerAngle, angle, iniPosition] call BIS_fnc_sceneRotate
```

**Parameters:**

- `center`: [Array](../topics/Array.md) - center position from MOTION BUILDER
- `centerAngle`: [Number](../topics/Number.md) - rotation of center from MOTION BUILDER
- `angle`: [Number](../topics/Number.md) - rotation
- `iniPosition`: [Array](../topics/Array.md) - inital position

**Returns:** [Array](../topics/Array.md) - array in format [[PositionX,PositionY,PositionZ], Rotation]

## Examples

### Example 1

```sqf
[[1337,1337,0], 42, 120, [200,200,0]] call BIS_fnc_sceneRotate; // returns [[1337.15,1334.18,0],-258]
```

## See also

[BIS_fnc_sceneCreateSoundEntities](../functions/BIS_fnc_sceneCreateSoundEntities.md) · [BIS_fnc_sceneSetBehaviour](../functions/BIS_fnc_sceneSetBehaviour.md) · [BIS_fnc_sceneGetObjects](../functions/BIS_fnc_sceneGetObjects.md)

<sub>Source: [BI Community Wiki — BIS fnc sceneRotate](https://community.bistudio.com/wiki/BIS_fnc_sceneRotate) (revision 348200).</sub>
