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).
correctionApplied?
optionalcorrectionApplied?:number
Defined in: physics/collision/collision-manifold.ts:44
The total positional-correction distance already applied to this
manifold during the current step's resolution passes. Mutated by
resolveCollision to cap the combined correction across
PhysicsWorld's solver iterations at MAX_LINEAR_CORRECTION_PER_STEP,
regardless of how that total is distributed across iterations. Starts
undefined (treated as zero) for a freshly-detected manifold.
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.