Skip to content

1681-engine / index / recoilAt

Function: recoilAt() ​

ts
function recoilAt(px, t): number;

Defined in: src/fx/hitStop.ts:23

The recoil left at t (0 the blow, 1 settled): out at once, eased back, whole pixels only.

Parameters ​

ParameterType
pxnumber
tnumber

Returns ​

number

Released under the MIT License.