提交 f0816457 编写于 作者: G gero3

Update src/core/Raycaster.js

small improvement in speed.
上级 331ba82c
......@@ -10,7 +10,7 @@
this.ray = new THREE.Ray( origin, direction );
// normalized ray.direction required for accurate distance calculations
if( this.ray.direction.length() > 0 ) {
if( this.ray.direction.lengthSq() > 0 ) {
this.ray.direction.normalize();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册