---
name: "BIN_fnc_getGridCollisions"
type: function
status: ok
groups: ["Movement"]
arma3_since: "1.94"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIN_fnc_getGridCollisions
revid: 363745
updated: 2024-04-17T15:24:34Z
---

# BIN_fnc_getGridCollisions

*Function · Movement · Arma 3 v1.94*

## Description

```
#define BUSH_WIDTH        2
#define BUSH_HEIGHT        2
#define TREE_TRUNK_WIDTH    0.5
#define TREE_TRUNK_HEIGHT    4

#define GET_POS\
    private _pos = _x modelToWorld (boundingcenter _x vectormultiply -1);

#define GET_BBOX\
    private _bbox = boundingboxreal _x;\
    private _bboxX = abs ((_bbox select 0 select 0) - (_bbox select 1 select 0)) / 2 + _cellSizeXHalf*0;\
    private _bboxY = abs ((_bbox select 0 select 1) - (_bbox select 1 select 1)) / 2 + _cellSizeYHalf*0;\
    private _bboxZ = abs ((_bbox select 0 select 2) - (_bbox select 1 select 2)) / 2 + _cellSizeZHalf*0;

    //_bboxZ = (abs (_bbox select 0 select 2) + abs (_bbox select 1 select 2)) + _cellSizeZHalf*0;

#define GET_BBOX_FIXED(SIZE)\
    private _bboxX = SIZE + _cellSizeXHalf;\
    private _bboxY = SIZE + _cellSizeYHalf;\
    private _bboxZ = SIZE + _cellSizeZHalf;
```

 

> [!NOTE]
> This content is exclusive to the Arma 3 Contact Expansion.

## Syntax

**Returns:**

<sub>Source: [BI Community Wiki — BIN fnc getGridCollisions](https://community.bistudio.com/wiki/BIN_fnc_getGridCollisions) (revision 363745).</sub>
