跳转到内容

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[]