# stepWedge

> Talos 0.7 · Since 0.7

One tick of noticing a wedge, given the metres `progress` it made along the road this tick (in the way it drives; `NaN` when it is not on a road).

Either of two things for `wedgedAfter` seconds of throttle held (`throttle` above 0.3) starts a back-out of `backOut` seconds: under `pinnedSpeed` all the while, or fewer than `minProgress` metres along the road in all. Getting on (over 3 m/s and making progress for a second) forgets the tries; the `maxTries`-th back-out in a row that does not get it going makes it stuck, said once ({@link WedgeStep.becameStuck}), and it keeps trying.

## Signature

```ts
export function stepWedge(w: WedgeState, throttle: number, speed: number, progress: number, dt: number, opts: WedgeOptions = {}): WedgeStep
```

Import: `import { stepWedge } from "@argus/gameplay"`
