Documentation - v19.16.0-dev
    Preparing search index...
    • Simplifies the displayed route while preserving vertical connectors and validating every replacement segment against scene obstacles.

      Parameters

      • route: NavigationRoute

        Route whose displayed positions should be simplified.

      • graph: NavigationGraph

        Graph containing the semantic edge kinds used by the route.

      • tolerance: number

        A positive value enables route simplification.

      • validateSegment: (from: Vector3, to: Vector3) => boolean

        Checks that a replacement segment does not cross an obstacle.

      • OptionaltraceSegment: (from: Vector3, to: Vector3) => Vector3[] | null

        Optionally builds a traversable segment following the scene surface.

      Returns NavigationRoute

      The simplified route, or the original route when simplification is unsafe.