Interface CollisionResolution

Contains information about the collision

interface CollisionResolution {
    direction: Vector2;
    penetration: number;
}

Properties

direction: Vector2

Collision direction

penetration: number

Intersection between both colliders expressed in pixels