Mr.doob 4 роки тому
батько
коміт
4a4d36d4e3
3 змінених файлів з 8 додано та 8 видалено
  1. 4 4
      build/three.js
  2. 0 0
      build/three.min.js
  3. 4 4
      build/three.module.js

+ 4 - 4
build/three.js

@@ -16250,14 +16250,14 @@
 						targetRay.matrix.fromArray(inputPose.transform.matrix);
 						targetRay.matrix.decompose(targetRay.position, targetRay.rotation, targetRay.scale);
 
-						if (inputPose.linearVelocity !== null) {
+						if (inputPose.linearVelocity) {
 							targetRay.hasLinearVelocity = true;
 							targetRay.linearVelocity.copy(inputPose.linearVelocity);
 						} else {
 							targetRay.hasLinearVelocity = false;
 						}
 
-						if (inputPose.angularVelocity !== null) {
+						if (inputPose.angularVelocity) {
 							targetRay.hasAngularVelocity = true;
 							targetRay.angularVelocity.copy(inputPose.angularVelocity);
 						} else {
@@ -16327,14 +16327,14 @@
 							grip.matrix.fromArray(gripPose.transform.matrix);
 							grip.matrix.decompose(grip.position, grip.rotation, grip.scale);
 
-							if (gripPose.linearVelocity !== null) {
+							if (gripPose.linearVelocity) {
 								grip.hasLinearVelocity = true;
 								grip.linearVelocity.copy(gripPose.linearVelocity);
 							} else {
 								grip.hasLinearVelocity = false;
 							}
 
-							if (gripPose.angularVelocity !== null) {
+							if (gripPose.angularVelocity) {
 								grip.hasAngularVelocity = true;
 								grip.angularVelocity.copy(gripPose.angularVelocity);
 							} else {

Різницю між файлами не показано, бо вона завелика
+ 0 - 0
build/three.min.js


+ 4 - 4
build/three.module.js

@@ -21962,7 +21962,7 @@ class WebXRController {
 					targetRay.matrix.fromArray( inputPose.transform.matrix );
 					targetRay.matrix.decompose( targetRay.position, targetRay.rotation, targetRay.scale );
 
-					if ( inputPose.linearVelocity !== null ) {
+					if ( inputPose.linearVelocity ) {
 
 						targetRay.hasLinearVelocity = true;
 						targetRay.linearVelocity.copy( inputPose.linearVelocity );
@@ -21973,7 +21973,7 @@ class WebXRController {
 
 					}
 
-					if ( inputPose.angularVelocity !== null ) {
+					if ( inputPose.angularVelocity ) {
 
 						targetRay.hasAngularVelocity = true;
 						targetRay.angularVelocity.copy( inputPose.angularVelocity );
@@ -22066,7 +22066,7 @@ class WebXRController {
 						grip.matrix.fromArray( gripPose.transform.matrix );
 						grip.matrix.decompose( grip.position, grip.rotation, grip.scale );
 
-						if ( gripPose.linearVelocity !== null ) {
+						if ( gripPose.linearVelocity ) {
 
 							grip.hasLinearVelocity = true;
 							grip.linearVelocity.copy( gripPose.linearVelocity );
@@ -22077,7 +22077,7 @@ class WebXRController {
 
 						}
 
-						if ( gripPose.angularVelocity !== null ) {
+						if ( gripPose.angularVelocity ) {
 
 							grip.hasAngularVelocity = true;
 							grip.angularVelocity.copy( gripPose.angularVelocity );

Деякі файли не було показано, через те що забагато файлів було змінено