UNPKG

planck-js

Version:

2D JavaScript/TypeScript physics engine for cross-platform HTML5 game development

17 lines (9 loc) 332 B
# Function: mixRestitution() > **mixRestitution**(`restitution1`, `restitution2`): `number` Restitution mixing law. The idea is allow for anything to bounce off an inelastic surface. For example, a superball bounces on anything. ## Parameters**restitution1**: `number`**restitution2**: `number` ## Returns `number`