planck-js
Version:
2D JavaScript/TypeScript physics engine for cross-platform HTML5 game development
17 lines (9 loc) • 302 B
Markdown
# Function: mixFriction()
> **mixFriction**(`friction1`, `friction2`): `number`
Friction mixing law. The idea is to allow either fixture to drive the
friction to zero. For example, anything slides on ice.
## Parameters
• **friction1**: `number`
• **friction2**: `number`
## Returns
`number`