|
@@ -177,7 +177,7 @@ export default class Player {
|
|
this.inited = true;
|
|
this.inited = true;
|
|
this.matLine = new LineMaterial({
|
|
this.matLine = new LineMaterial({
|
|
color: this.lineColor,
|
|
color: this.lineColor,
|
|
- linewidth: 3, // in world units with size attenuation, pixels otherwise
|
|
|
|
|
|
+ linewidth: 4, // in world units with size attenuation, pixels otherwise
|
|
dashed: false,
|
|
dashed: false,
|
|
alphaToCoverage: true,
|
|
alphaToCoverage: true,
|
|
});
|
|
});
|
|
@@ -488,7 +488,7 @@ export default class Player {
|
|
e.y = 5;
|
|
e.y = 5;
|
|
const matLine = new LineMaterial({
|
|
const matLine = new LineMaterial({
|
|
color: this.lineColor,
|
|
color: this.lineColor,
|
|
- linewidth: 3, // in world units with size attenuation, pixels otherwise
|
|
|
|
|
|
+ linewidth: 4, // in world units with size attenuation, pixels otherwise
|
|
dashed: false,
|
|
dashed: false,
|
|
alphaToCoverage: true,
|
|
alphaToCoverage: true,
|
|
});
|
|
});
|
|
@@ -574,9 +574,9 @@ export default class Player {
|
|
if (this.activeEdges.length > 0) {
|
|
if (this.activeEdges.length > 0) {
|
|
this.activeEdges.forEach((edge) => {
|
|
this.activeEdges.forEach((edge) => {
|
|
const exist = imgList.find((item) => item.userData === edge.id);
|
|
const exist = imgList.find((item) => item.userData === edge.id);
|
|
- // console.log("exist", exist);
|
|
|
|
if (exist) {
|
|
if (exist) {
|
|
let others = [0, 1, 2, 3].filter((x) => !edge.dir.includes(x));
|
|
let others = [0, 1, 2, 3].filter((x) => !edge.dir.includes(x));
|
|
|
|
+ // console.log("others", others);
|
|
edge.dir.forEach((dir) => {
|
|
edge.dir.forEach((dir) => {
|
|
exist.touchLines.children[dir].visible = true;
|
|
exist.touchLines.children[dir].visible = true;
|
|
});
|
|
});
|
|
@@ -623,10 +623,17 @@ export default class Player {
|
|
if (uni_dir.length > 0) {
|
|
if (uni_dir.length > 0) {
|
|
this.activeEdges[egIndex].dir = uni_dir;
|
|
this.activeEdges[egIndex].dir = uni_dir;
|
|
} else {
|
|
} else {
|
|
|
|
+ console.log("全空", this.activeEdges[egIndex].id);
|
|
|
|
+ let imgList = this.scene.boxManager.imgList;
|
|
|
|
+ const image = imgList.find(
|
|
|
|
+ (item) => item.userData === this.activeEdges[egIndex].id
|
|
|
|
+ );
|
|
|
|
+ image.touchLines.children.forEach((line) => {
|
|
|
|
+ line.visible = false;
|
|
|
|
+ });
|
|
this.activeEdges.splice(egIndex, 1);
|
|
this.activeEdges.splice(egIndex, 1);
|
|
|
|
+ this.update();
|
|
}
|
|
}
|
|
- console.log("exist", this.activeEdges);
|
|
|
|
- // this.showAllActiveEdges();
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (type === 3) {
|
|
if (type === 3) {
|