Ver Fonte

DaydreamController: Bugfix angularVelocity

Mugen87 há 8 anos atrás
pai
commit
408a44b305
1 ficheiros alterados com 1 adições e 1 exclusões
  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 } );