跳转到内容

readCollider3DShapes

此内容尚不支持你的语言。

readCollider3DShapes(world, entity): Collider3DInstance[]

Defined in: physics3d/ColliderShape3D.ts:100

Every 3D collider on entity, each marked with whether it is the one the solver ends up building. The order mirrors createBody in Physics3DSystem — box, sphere, mesh, hull, capsule — and must keep mirroring it: a visualizer drawing a different shape than the world collides with is worse than none.

World

number

Collider3DInstance[]