Interface: PolygonFacesContact
Defined in: physics/collision/polygon-faces-collision.ts:20
The result of a successful detectPolygonFacesCollision check, everything a CollisionManifold needs besides the two bodies involved.
Properties
contactPoints
contactPoints:
Vector2[]
Defined in: physics/collision/polygon-faces-collision.ts:35
The world-space contact points (one or two points).
depth
depth:
number
Defined in: physics/collision/polygon-faces-collision.ts:30
The penetration depth of the contact.
normal
normal:
Vector2
Defined in: physics/collision/polygon-faces-collision.ts:25
The contact normal, in world space, pointing from facesA toward
facesB.