JME - Application Documentation
    Preparing search index...
    • Returns the world-space midpoint of a specific lane strip at a junction exit.

      Lane lines are boundary lines, so N lanes = N + 1 boundary lines, meaning strip laneIndex sits between boundary lines laneIndex and laneIndex + 1. Inbound lanes are indexed in reverse order relative to outbound lanes since they occupy the opposite side of the exit road.

      Parameters

      • group: Group

        The Three.js group of the junction object.

      • exitIndex: number

        Which exit arm on the junction.

      • laneIndex: number

        Which lane strip within that exit (0 = leftmost/nearside).

      • which: "end" | "start"

        "start" (junction-side) or "end" (road-side) of the lane.

      • dir: "in" | "out"

        "in" for inbound lanes, "out" for outbound.

      Returns any

      The world-space midpoint of the requested lane strip endpoint.