Three.js: draw bounding box around skinnedMesh

孤者浪人 提交于 2019-12-11 08:42:03

问题


I'm trying to draw a boundingbox around a skinned model:

const box = new THREE.BoxHelper(trooper, 0xff0000);
scene.add(box);

https://jsfiddle.net/66sor15y/4/

As you see the model doesn't fit the bounding box. I filed an issue to understand the problem, but I still have issues drawing the actual box.

https://github.com/mrdoob/three.js/issues/13989

Any help would be highly appreciated!

来源:https://stackoverflow.com/questions/50173778/three-js-draw-bounding-box-around-skinnedmesh

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!