bakeGroundObstacles
bakeGroundObstacles(
entity,bakeObstaclesOptions?): () =>void
Bakes what of the entity’s scatter blocks a walker into its Obstacles trait, from the scatter shapes table unless handed other shapes, with the bake’s bounds tree built in the same call. Returns what takes the trait off and frees the bake, which a second bake calls first or is refused.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
entity |
Entity |
bakeObstaclesOptions |
Pick<BakeObstaclesOptions, "shapes"> |
Returns
Section titled “Returns”() => void