# @ferret/physics-impact: API

elastic and inelastic collisions, rest thresholds, sticking, impact events.

5 exports. Generated from the source (`packages/physics-impact/src`), so it matches the code.

## Functions

### impact

*function* · `packages/physics-impact/src/index.ts:37`

```ts
function impact(): Capability
```

## Interfaces

### ImpactEvent

*interface* · `packages/physics-impact/src/index.ts:19`

```ts
interface ImpactEvent
```

- `a: Body`
- `b: Body`
- `entityA?: unknown`
- `entityB?: unknown`
- `point: Vec3`
- `normal: Vec3`
- `impulse: number` — normal impulse over the step, N·s
- `speed: number` — closing speed, m/s
- `restitution: number` — the restitution the hit was solved with (0 when below the threshold)
- `energyLost: number` — kinetic energy turned into heat and deformation, J: ½·μ·(1 − e²)·v² with the reduced mass μ
- `stuck: boolean`

### ImpactFalloff

*interface* · `packages/physics-impact/src/kernels.ts:5`

```ts
interface ImpactFalloff
```

- `from: number`
- `to: number`
- `factor: number`

### ImpactHookParams

*interface* · `packages/physics-impact/src/kernels.ts:6`

```ts
interface ImpactHookParams
```

- `scoped: ScopedSnapshot`
- `zones?: ZonesData`

## Constants

### IMPACT_DEFAULTS

*const* · `packages/physics-impact/src/index.ts:33`

```ts
const IMPACT_DEFAULTS: { threshold: number | undefined; scale: number; falloff: ImpactFalloff | undefined; stick: boolean; minEventSpeed: number; }
```

