Skip to content

readCollider2DShapes

readCollider2DShapes(world, entity): Collider2DInstance[]

Defined in: physics/ColliderShape2D.ts:139

Read every collider component present on entity into shape descriptors, in the same order PhysicsSystem’s addShapeForEntity dispatches (box, circle, capsule, segment, polygon, chain). Chain has no sensor flag, so it reports isSensor: false.

World

number

Collider2DInstance[]