2
0
Эх сурвалжийг харах

DaydreamController: Bugfix angularVelocity

Mugen87 8 жил өмнө
parent
commit
408a44b305

+ 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 } );