fixed wall

This commit is contained in:
2020-03-22 19:29:31 +01:00
parent d07f8c8f5d
commit 34a9317110
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -128,22 +128,22 @@ class DDImporter {
console.log(this.getNearerPoint(point2, [portalPoint1, portalPoint2]));
topoint1 = this.getNearerPoint(point1, [portalPoint1, portalPoint2]);
topoint2 = this.getNearerPoint(point2, [portalPoint1, portalPoint2]);
let wall = new Wall({
let wall1 = new Wall({
c : [
point1[0],
point1[1],
topoint1[0],
topoint1[1]]
});
wallSet.push(wall.data)
let wall = new Wall({
wallSet.push(wall1.data)
let wall2 = new Wall({
c : [
point2[0],
point2[1],
topoint2[0],
topoint2[1]]
});
wallSet.push(wall.data)
wallSet.push(wall2.data)
}
else{
let wall = new Wall({