Interface Collision

Represent a collision. It contains the colliders involved, the entities, and the resolution data.

interface Collision {
    localCollider: Collider;
    localEntity: number;
    remoteCollider: Collider;
    remoteEntity: number;
    resolution: CollisionResolution;
}

Properties

localCollider: Collider

The local collider component

localEntity: number

The local entity

remoteCollider: Collider

The remote collider component

remoteEntity: number

The remote collider

Contains the information about the collision