Skip to content

readColliderShapes

readColliderShapes(world, entity): ColliderInstance[]

Defined in: physics/ColliderShape.ts:135

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

ColliderInstance[]