Skip to content

ColliderContact

Defined in: physics/src/types.ts:395

The closest points between two colliders, from ColliderComponent.contactWith / PhysicsWorld.contactBetween. A geometric query on the colliders’ current poses, not a solver manifold, so it works for sensors and for pairs that never collided.

distance: number

Defined in: physics/src/types.ts:409

Distance between point and otherPoint in pixels; negative when the shapes overlap, by the penetration depth.


normal: Vec2

Defined in: physics/src/types.ts:404

Unit vector from this collider toward the other: the direction that separates the pair. Overlapping shapes report the shortest way out.


otherPoint: Vec2

Defined in: physics/src/types.ts:399

Point on the other collider’s surface, in world pixels.


point: Vec2

Defined in: physics/src/types.ts:397

Point on this collider’s surface, in world pixels.