PathSegmentType

    NavigationPathQueryResult2D.swift:13
    enum PathSegmentType

    Cases

    • case region

      This segment of the path goes through a region.

    • case link

      This segment of the path goes through a link.

    Other members in extension

    Type members

    Instance members

    • var path: PackedVector2Array

      The resulting path array from the navigation query. All path array positions are in global coordinates. Without customized query parameters this is the same path as returned by mapGetPath(map:origin:destination:optimize:navigationLayers:).

    • var pathOwnerIds: PackedInt64Array

      The ObjectIDs of the Objects which manage the regions and links each point of the path goes through.

    • var pathRids: VariantCollection<RID>

      The RIDs of the regions and links that each point of the path goes through.

    • var pathTypes: PackedInt32Array

      The type of navigation primitive (region or link) that each point of the path goes through.

    • func reset()

      Reset the result object to its initial state. This is useful to reuse the object across multiple queries.

    Citizens in SwiftGodot

    Conformances

    Type members

    Instance members

    Type features

    Instance features