king2088 / vue-3d-loader

VueJS and threeJS 3d viewer plugin

Home Page:https://king2088.github.io/vue-3d-loader-docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vue2 版本@mousemove="onMouseMove" 事件不起作用

Jetter-li opened this issue · comments

onMouseMove(event, intersected) {
debugger
if (this.object) {
this.object.material.color.setStyle("#fff");
}
if (intersected) {
this.object = intersected.object;
this.object.material.color.setStyle("#13ce66");
}
},
参考这个例子,intersected一直为空,怎么解决这个问题呢?

commented

你的问题可能和这个issue一样#39

好的,谢谢,加上 :intersectRecursive="true" 参数可以用了