> For the complete documentation index, see [llms.txt](https://travljen.gitbook.io/object-placement/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://travljen.gitbook.io/object-placement/how-it-works/placement-area.md).

# Placement Area

## Overview

### Placement Area

Object Placement supports these placement area modes:

* `Anywhere`: Objects can be placed anywhere valid ground is detected.
* `Box`: Objects can be placed inside a box area.
* `Sphere`: Objects can be placed inside a sphere area.
* `Custom`: Placement validity and clamping are handled by an `IPlacementArea` implementation.

Placement area checks use the center of the placing object's bounds.

### Clamp Inside

Placement Area can either reject positions outside the area or clamp the placement position back inside the area.

When `Clamp Inside` is disabled:

* The sampled cursor position is not changed.
* Placement becomes invalid when the placing object's bounds center is outside the configured area.

When `Clamp Inside` is enabled:

* The sampled cursor position is moved to the closest valid position inside the configured area.
* Placement area validation is treated as valid because the object is expected to already be clamped inside the area.

This is useful for map boundaries where the player should be able to drag the cursor outside the valid area while the preview remains on the closest valid point.
