|
@@ -137,7 +137,7 @@ class WebXRController {
|
|
targetRay.matrix.fromArray( inputPose.transform.matrix );
|
|
targetRay.matrix.fromArray( inputPose.transform.matrix );
|
|
targetRay.matrix.decompose( targetRay.position, targetRay.rotation, targetRay.scale );
|
|
targetRay.matrix.decompose( targetRay.position, targetRay.rotation, targetRay.scale );
|
|
|
|
|
|
- if ( inputPose.linearVelocity !== null ) {
|
|
|
|
|
|
+ if ( inputPose.linearVelocity ) {
|
|
|
|
|
|
targetRay.hasLinearVelocity = true;
|
|
targetRay.hasLinearVelocity = true;
|
|
targetRay.linearVelocity.copy( inputPose.linearVelocity );
|
|
targetRay.linearVelocity.copy( inputPose.linearVelocity );
|
|
@@ -148,7 +148,7 @@ class WebXRController {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- if ( inputPose.angularVelocity !== null ) {
|
|
|
|
|
|
+ if ( inputPose.angularVelocity ) {
|
|
|
|
|
|
targetRay.hasAngularVelocity = true;
|
|
targetRay.hasAngularVelocity = true;
|
|
targetRay.angularVelocity.copy( inputPose.angularVelocity );
|
|
targetRay.angularVelocity.copy( inputPose.angularVelocity );
|
|
@@ -241,7 +241,7 @@ class WebXRController {
|
|
grip.matrix.fromArray( gripPose.transform.matrix );
|
|
grip.matrix.fromArray( gripPose.transform.matrix );
|
|
grip.matrix.decompose( grip.position, grip.rotation, grip.scale );
|
|
grip.matrix.decompose( grip.position, grip.rotation, grip.scale );
|
|
|
|
|
|
- if ( gripPose.linearVelocity !== null ) {
|
|
|
|
|
|
+ if ( gripPose.linearVelocity ) {
|
|
|
|
|
|
grip.hasLinearVelocity = true;
|
|
grip.hasLinearVelocity = true;
|
|
grip.linearVelocity.copy( gripPose.linearVelocity );
|
|
grip.linearVelocity.copy( gripPose.linearVelocity );
|
|
@@ -252,7 +252,7 @@ class WebXRController {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- if ( gripPose.angularVelocity !== null ) {
|
|
|
|
|
|
+ if ( gripPose.angularVelocity ) {
|
|
|
|
|
|
grip.hasAngularVelocity = true;
|
|
grip.hasAngularVelocity = true;
|
|
grip.angularVelocity.copy( gripPose.angularVelocity );
|
|
grip.angularVelocity.copy( gripPose.angularVelocity );
|