---
name: "get3DENCamera"
type: command
status: ok
groups: ["Eden Editor"]
arma3_since: "1.56"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/get3DENCamera
revid: 369318
updated: 2024-09-03T18:42:56Z
---

# get3DENCamera

*Command · Eden Editor · Arma 3 v1.56*

## Description

Returns the camera [Object](../topics/Object.md) used by the Eden Editor.

## Syntax

```sqf
get3DENCamera
```

**Returns:** [Object](../topics/Object.md) - Eden Editor camera

## Examples

### Example 1

```sqf
// set exact yaw, pitch, and roll
_y = 45; _p = -80; _r = 0;
get3DENCamera setVectorDirAndUp [
    [sin _y * cos _p,cos _y * cos _p,sin _p],
    [[sin _r,-sin _p,cos _r * cos _p],-_y] call BIS_fnc_rotateVector2D
];
```

### Example 2

```sqf
//Look at player
_a = positionCameraToWorld [0,0,0] vectorFromTo (getPosATL player);
_y = asin(_a select 0);
_b = [_a,_y] call BIS_fnc_rotateVector2D;
_z = _b select 2;
_p = asin(_z / sqrt((_b select 1)^2 + _z^2));
get3DENCamera setVectorDirAndUp [
    _a,
    [[0,-sin _p,cos _p],-_y] call BIS_fnc_rotateVector2D
];
```

## See also

[move3DENCamera](../commands/move3DENCamera.md) · [set3DENAttributes](../commands/set3DENAttributes.md)

<sub>Source: [BI Community Wiki — get3DENCamera](https://community.bistudio.com/wiki/get3DENCamera) (revision 369318).</sub>
