Browse Source

Update DragControls.js

Leven 6 năm trước cách đây
mục cha
commit
01686f092b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 ));
 
 			}