new Corridor()
Creates a new corridor.
Members
-
portalEdges :Array.<Object>
-
The portal edges of the corridor.
Methods
-
generate() → {Array.<Vector3>}
-
Generates the shortest path through the corridor as an array of 3D vectors.
-
push(left, right) → {Corridor}
-
Adds a portal edge defined by its left and right vertex to this corridor.
Parameters:
Name Type Description left
Vector3 The left point (origin) of the portal edge.
right
Vector3 The right point (destination) of the portal edge.