Recast.js
    Preparing search index...

    Class Zone

    A named group of polygons sharing the same traversal flags. Instances are created internally by RecastModule.setZones.

    Index

    Constructors

    Methods

    • Returns true if FLAG_WALK is set.

      Returns boolean

    • Returns true if all bits of flags are set.

      Parameters

      • flags: number

      Returns boolean

    • Sets one or more flag bits and syncs to the navmesh.

      Parameters

      • flags: number

      Returns this

    • Clears one or more flag bits and syncs to the navmesh.

      Parameters

      • flags: number

      Returns this

    • Toggles one or more flag bits and syncs to the navmesh.

      Parameters

      • flags: number

      Returns this

    • Pushes current flags to all referenced polygons.

      Returns this

    Properties

    name: string
    refs: number[]
    flags: number

    Accumulated traversal flags bitmask.