Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CollisionContact

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

Hierarchy

  • CollisionContact

Index

Constructors

constructor

Properties

bodyA

The first rigid body in the collision

bodyB

The second rigid body 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 bodyA

normal

normal: Vector

The collision normal, pointing away from bodyA

point

point: Vector

The point of collision shared between bodyA and bodyB

Methods

Private _applyBoxImpluse

  • Parameters

    Returns void

Private _resolveBoxCollision

  • _resolveBoxCollision(delta: number): void
  • Parameters

    • delta: number

    Returns void

Private _resolveRigidBodyCollision

  • _resolveRigidBodyCollision(delta: number): void
  • Parameters

    • delta: number

    Returns void

resolve