Skip to content

ColliderContact

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

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:449

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


normal: Vec2

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

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:439

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


point: Vec2

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

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

Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/physics.md.