Skip to main content

Interface: CollisionManifold

Defined in: physics/collision/collision-manifold.ts:8

Describes the result of a narrow-phase collision check between two RigidBody instances.

Properties

bodyA

bodyA: RigidBody

Defined in: physics/collision/collision-manifold.ts:12

The first body involved in the collision.


bodyB

bodyB: RigidBody

Defined in: physics/collision/collision-manifold.ts:17

The second body involved in the collision.


contactPoints

contactPoints: Vector2[]

Defined in: physics/collision/collision-manifold.ts:34

The world-space contact points of the collision (one or two points).


depth

depth: number

Defined in: physics/collision/collision-manifold.ts:29

The penetration depth of the collision, always greater than or equal to zero.


normal

normal: Vector2

Defined in: physics/collision/collision-manifold.ts:23

The collision normal, in world space, pointing from bodyA toward bodyB.