The contact info between two shapes.

Constructors

Properties

Methods

Constructors

Properties

distance: number

Distance between the two contact points. If this is negative, this contact represents a penetration.

normal1: Vector

Contact normal, pointing towards the exterior of the first shape.

normal2: Vector

Contact normal, pointing towards the exterior of the second shape. If these contact data are expressed in world-space, this normal is equal to -normal1.

point1: Vector

Position of the contact on the first shape.

point2: Vector

Position of the contact on the second shape.

Methods