# Function: move()

> **move**(`map`, `body`, `dx`, `dy`, `options?`): [`MoveResult`](../interfaces/MoveResult.md)

Defined in: [collide.ts:43](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/tilemap/src/collide.ts#L43)

Move a body through the map, stopping at solid tiles. X then Y are resolved separately, and long
moves are split into tile-sized sub-steps so fast bodies never tunnel. One-way tiles only block a
body moving down whose bottom started at or above the tile's top (plus `oneWayTolerance`). Mutates `body.x/y`.

## Parameters

### map

[`Tilemap`](../classes/Tilemap.md)

### body

[`Body`](../interfaces/Body.md)

### dx

`number`

### dy

`number`

### options?

[`MoveOptions`](../interfaces/MoveOptions.md) = `{}`

## Returns

[`MoveResult`](../interfaces/MoveResult.md)
