DistanceOutput

constructor(pointA: Vec2, pointB: Vec2, normal: Vec2, distance: Float, iterations: Int)

Parameters

pointA

Closest point on shape A

pointB

Closest point on shape B

normal

Normal vector that points from A to B (invalid if distance is zero)

distance

The final distance (zero if overlapped)

iterations

Number of GJK iterations used