Class ShapeContact

The contact info between two shapes.

Hierarchy

  • ShapeContact

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

  • Parameters

    • raw: RawShapeContact

    Returns ShapeContact

Generated using TypeDoc