Skip to main content

ArcadeSolver

ArcadeSolver is the default in Excalibur. It solves collisions so that there is no overlap between contacts, and negates velocity along the collision normal.

This is usually the type of collisions used for 2D games that don't need a more realistic collision simulation.

Implements

Index

Constructors

constructor

Properties

publicconfig

config: Required<{ contactSolveBias?: ContactSolveBias }>

directionMap

directionMap: Map<string, horizontal | vertical> = ...

distanceMap

distanceMap: Map<string, number> = ...

Methods

publicpostSolve

publicpreSolve

publicsolve

  • Solves overlapping contact in

    Solvers are executed in the order

    1. preSolve
    2. solveVelocity
    3. solvePosition
    4. postSolve

    Parameters

    Returns CollisionContact[]

publicsolvePosition

publicsolveVelocity