ArcadeSolver
Implements
Index
Constructors
Properties
Methods
Constructors
constructor
Parameters
config: Required<{ contactSolveBias?: ContactSolveBias }>
Returns ArcadeSolver
Properties
publicconfig
directionMap
distanceMap
Methods
publicpostSolve
Parameters
contacts: CollisionContact[]
Returns void
publicpreSolve
Parameters
contacts: CollisionContact[]
Returns void
publicsolve
Solves overlapping contact in
Solvers are executed in the order
- preSolve
- solveVelocity
- solvePosition
- postSolve
Parameters
contacts: CollisionContact[]
Returns CollisionContact[]
publicsolvePosition
Parameters
contact: CollisionContact
Returns void
publicsolveVelocity
Parameters
contact: CollisionContact
Returns void
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.