浏览代码

Update DragControls.js

Leven 6 年之前
父节点
当前提交
01686f092b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/js/controls/DragControls.js

+ 1 - 1
examples/js/controls/DragControls.js

@@ -129,7 +129,7 @@ THREE.DragControls = function ( _objects, _camera, _domElement ) {
 
 			if ( _raycaster.ray.intersectPlane( _plane, _intersection ) ) {
 
-				_offset.copy( _intersection ).sub(_selected.getWorldPosition( _worldPosition ));
+				_offset.copy( _intersection ).sub( _selected.getWorldPosition( _worldPosition ));
 
 			}