Przeglądaj źródła

DaydreamController: Bugfix angularVelocity

Mugen87 8 lat temu
rodzic
commit
408a44b305
1 zmienionych plików z 1 dodań i 1 usunięć
  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 } );