# AreaTrigger.setShapeDetection

Shape detection is off by default. When set to true the area trigger can calculate which shapes are inside of the trigger

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
areaTrigger:setShapeDetection( detectShapes )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/AreaTrigger.md#setshapedetection)

with a call to [AreaTrigger](../Game-Script-Environment/Userdata/AreaTrigger.md): getShapes

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `areaTrigger` | [AreaTrigger](../Game-Script-Environment/Userdata/AreaTrigger.md) | The area trigger instance. |
| `detectShapes` | boolean | Shape detection on or off. |
