---
name: "BIS_fnc_boundingBoxCorner"
type: function
status: ok
groups: ["Object Manipulation"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_boundingBoxCorner
revid: 292391
updated: 2021-08-07T23:55:04Z
---

# BIS_fnc_boundingBoxCorner

*Function · Object Manipulation · Arma 3 v0.50 · introduced in Arma 2: Operation Arrowhead v1.50*

## Description

Returns position of all four bounding box corners OR Returns position of the nearest corner to the given position

## Syntax

*syntax inferred from the function header*

```sqf
[param0, param1] call BIS_fnc_boundingBoxCorner
```

**Parameters:**

- `param0` — 0: OBJECT - object with bounding box
- `param1` — 1: ARRAY or OBJECT - position for which the nearest corner is returned

**Returns:** ARRAY in format [pos1, pos2, pos3, pos4] - 4 corners of the bounding box
    OR
    ARRAY in format [x,y,z] - position of the nearest corner

Example 1:
    _corners = car call BIS_fnc_boundingBoxCorner;

Example 2:
    _nearestCorner = [car, player] call BIS_fnc_boundingBoxCorner;

## Function header

The comment at the top of the function's file in the game; this page's description, params, syntax, returns come from it.

```sqf
/*
Description:
    Returns position of all four bounding box corners
    OR
    Returns position of the nearest corner to the given position

Parameter(s):
    _this: OBJECT - object with bounding box
    OR
    _this: ARRAY in format:
        0: OBJECT - object with bounding box
        1: ARRAY or OBJECT - position for which the nearest corner is returned
Returns:
    ARRAY in format [pos1, pos2, pos3, pos4] - 4 corners of the bounding box
    OR
    ARRAY in format [x,y,z] - position of the nearest corner

Example 1:
    _corners = car call BIS_fnc_boundingBoxCorner;

Example 2:
    _nearestCorner = [car, player] call BIS_fnc_boundingBoxCorner;
*/
```

<sub>Source: [BI Community Wiki — BIS fnc boundingBoxCorner](https://community.bistudio.com/wiki/BIS_fnc_boundingBoxCorner) (revision 292391).</sub>
