bakeGroundNavMesh
bakeGroundNavMesh(
entity,__namedParameters): () =>void
Defined in: packages/engine/src/gameplay/world/actions.ts:143
Bakes the floor, with the entity’s obstacles cut out of it, into its
NavMesh trait. The caller hands in the floor’s mesh, because gameplay
renders nothing, and awaits recastReady first. 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 |
__namedParameters |
Pick<BakeNavMeshOptions, "ground"> |
Returns
Section titled “Returns”() => void