Raanan Weber 5 lat temu
rodzic
commit
721975082d
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/Cameras/XR/features/webXRARHitTest.ts

+ 2 - 2
src/Cameras/XR/features/webXRARHitTest.ts

@@ -16,7 +16,7 @@ export interface XRSession {
 }
 }
 
 
 export interface WebXRHitTestOptions {
 export interface WebXRHitTestOptions {
-    testOnlyOnSelect?: boolean;
+    testOnPointerDownOnly?: boolean;
     worldParentNode?: TransformNode;
     worldParentNode?: TransformNode;
 }
 }
 
 
@@ -38,7 +38,7 @@ export class WebXRHitTest implements WebXRFeature {
     private _tmpMatrix = new Matrix();
     private _tmpMatrix = new Matrix();
 
 
     attachAsync(): Promise<boolean> {
     attachAsync(): Promise<boolean> {
-        if (this.options.testOnlyOnSelect) {
+        if (this.options.testOnPointerDownOnly) {
             this.xrSessionManager.session.addEventListener('select', this.onSelect, false);
             this.xrSessionManager.session.addEventListener('select', this.onSelect, false);
         } else {
         } else {
             // we are in XR space!
             // we are in XR space!