包围盒不包括儿童? threejsr85

时间:2017-05-11 12:35:09

标签: javascript three.js

我遇到的问题是边界框不包含网格的子节点。我已经尝试了所有的解决方案,比如调用BoxHelper的update(),但没有取得任何成功。请帮助我解决问题bounding box coming wrong

边界框的代码: -

var boxHelper = new THREE.BoxHelper(Object); // to remove the diagonals
this.scene.add(boxHelper);
boxHelper.material.color.set(0x00ff00);

boxHelper.update();

0 个答案:

没有答案