# chase

function in `@dioramajs/diorama/kit`

```ts
import { chase } from '@dioramajs/diorama/kit'
```

Moves `at` towards `aim` with `damp` on both axes and lands on it once within `near` (a
distance), like `damp`'s own `near`. Returns whether it is still on its way, which an update
can return to keep frames coming. `seconds` 0 jumps.

```ts
function chase(
  at: { x: number; y: number },
  aim: { readonly x: number; readonly y: number },
  seconds: number,
  delta: number,
  near?: number,
): boolean
```

| Parameter | Type | Description |
| --- | --- | --- |
| `at` | `{ x: number; y: number }` |  |
| `aim` | `{ readonly x: number; readonly y: number }` |  |
| `seconds` | `number` |  |
| `delta` | `number` |  |
| `near?` | `number` |  |

Also exported from `@dioramajs/effects/kit`.

Defined in [packages/effects/src/kit.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/effects/src/kit.ts#L222).
