1681-engine / index / recoilPx
Function: recoilPx() ​
ts
function recoilPx(
heavy,
share,
crit
): number;Defined in: src/fx/hitStop.ts:14
How far the body struck recoils away from the blow (whole world px): a heavy body barely, a crit a pixel further.
Parameters ​
| Parameter | Type |
|---|---|
heavy | boolean |
share | number |
crit | boolean |
Returns ​
number