The Matter.Resolver module contains methods for resolving collision pairs.

Hierarchy

  • default

Constructors

Properties

_frictionMaxStatic: number = Number.MAX_VALUE
_frictionNormalMultiplier: number = 5
_positionDampen: number = 0.9
_positionWarming: number = 0.8
_restingThresh: number = 2
_restingThreshTangent: number = ...

Methods

  • Prepare pairs for position solving.

    Parameters

    Returns void

    Method

    preSolvePosition

  • Find a solution for pair positions.

    Parameters

    • pairs: IPair[]
    • delta: number
    • damping: number = 1

    Returns void

    Method

    solvePosition

  • Find a solution for pair velocities.

    Parameters

    • pairs: IPair[]
    • delta: number

    Returns void

    Method

    solveVelocity

Generated using TypeDoc