xushiting %!s(int64=2) %!d(string=hai) anos
pai
achega
cf8c55c50b
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/graphic/Geometry/CurveRoad.js

+ 2 - 0
src/graphic/Geometry/CurveRoad.js

@@ -11,6 +11,8 @@ export default class CurveRoad extends Road {
     this.points = []; //中心线上一系列控制点。数组是从start到end。
     this.leftEdgeId = null;
     this.rightEdgeId = null;
+    this.leftLanes = []; //二维数组。第一维表示第几个车道,第二维是一组点
+    this.rightLanes = [];
     this.width = Constant.defaultRoadWidth; //默认宽度
 
     this.leftDrivewayCount = 2; //左边的车道个数