Options
All
  • Public
  • Public/Protected
  • All
Menu

Collision contacts are used internally by Excalibur to resolve collision between colliders. This Pair prevents collisions from being evaluated more than one time

Hierarchy

  • CollisionContact

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

colliderA

colliderA: Collider

The first collider in the collision

colliderB

colliderB: Collider

The second collider in the collision

id

id: string

The id of this collision contact

mtv

mtv: Vector

The minimum translation vector to resolve penetration, pointing away from colliderA

normal

normal: Vector

The collision normal, pointing away from colliderA

point

point: Vector

The point of collision shared between colliderA and colliderB

Methods

resolve