setObstacles
setObstacles(
handle,obstacles):void
Defined in: packages/engine/src/gameplay/physics/world.ts:99
Replaces the hulls with one convex hull per merge group of obstacles,
which the bake keeps per placement, or none for null. Runs once per
bake, never during a step’s actors.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
handle |
PhysicsHandle |
obstacles |
MeshBVH | null |
Returns
Section titled “Returns”void