Browse Source

DaydreamController: Bugfix angularVelocity

Mugen87 8 năm trước cách đây
mục cha
commit
408a44b305
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      examples/js/vr/DaydreamController.js

+ 1 - 1
examples/js/vr/DaydreamController.js

@@ -66,7 +66,7 @@ THREE.DaydreamController = function () {
 
 			// angular velocity
 
-			if ( pose.angularVelocity !== null || ! angularVelocity.equals( pose.angularVelocity ) ) {
+			if ( pose.angularVelocity !== null && ! angularVelocity.equals( pose.angularVelocity ) ) {
 
 				angularVelocity.fromArray( pose.angularVelocity );
 				scope.dispatchEvent( { type: 'angularvelocitychanged', angularVelocity: angularVelocity } );