浏览代码

Revert "Added "controllermove" event to WebXRController (#20790)" (#21698)

This reverts commit 1578a2f5e8b5b49e9ffbf0bdbd8bf02abdde01bf.
Mr.doob 4 年之前
父节点
当前提交
f027db2a65
共有 1 个文件被更改,包括 0 次插入6 次删除
  1. 0 6
      src/renderers/webxr/WebXRController.js

+ 0 - 6
src/renderers/webxr/WebXRController.js

@@ -218,24 +218,18 @@ class WebXRController {
 
 
 			targetRay.visible = ( inputPose !== null );
 			targetRay.visible = ( inputPose !== null );
 
 
-			if ( targetRay.visible ) targetRay.dispatchEvent( { type: 'controllermove' } );
-
 		}
 		}
 
 
 		if ( grip !== null ) {
 		if ( grip !== null ) {
 
 
 			grip.visible = ( gripPose !== null );
 			grip.visible = ( gripPose !== null );
 
 
-			if ( grip.visible ) grip.dispatchEvent( { type: 'controllermove' } );
-
 		}
 		}
 
 
 		if ( hand !== null ) {
 		if ( hand !== null ) {
 
 
 			hand.visible = ( handPose !== null );
 			hand.visible = ( handPose !== null );
 
 
-			if ( hand.visible ) hand.dispatchEvent( { type: 'controllermove' } );
-
 		}
 		}
 
 
 		return this;
 		return this;