Skip to content

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 ​

ParameterType
heavyboolean
sharenumber
critboolean

Returns ​

number

Released under the MIT License.