Skip to main content

Interface: CircleContact

Defined in: physics/collision/circle-polygon-contact.ts:28

A circle's contact against a convex polygon face or vertex, in the polygon's own local space, found by findCircleContact.

Properties

depth

depth: number

Defined in: physics/collision/circle-polygon-contact.ts:42

The penetration depth of the contact.


localContactPoint

localContactPoint: Vector2

Defined in: physics/collision/circle-polygon-contact.ts:37

The contact point, on the surface of the polygon.


localNormal

localNormal: Vector2

Defined in: physics/collision/circle-polygon-contact.ts:32

The contact normal, pointing from the polygon toward the circle.