Raanan Weber 5 년 전
부모
커밋
1e5e61bff7
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      src/XR/features/WebXRControllerPointerSelection.ts

+ 5 - 0
src/XR/features/WebXRControllerPointerSelection.ts

@@ -210,6 +210,11 @@ export class WebXRControllerPointerSelection extends WebXRAbstractFeature {
         return null;
     }
 
+    /**
+     * Will get the mesh under a specific pointer.
+     * `scene.meshUnderPointer` will only return one mesh - either left or right.
+     * @param controllerId the controllerId to check
+     */
     public getMeshUnderPointer(controllerId: string): Nullable<AbstractMesh> {
         if (this._controllers[controllerId]) {
             return this._controllers[controllerId].meshUnderPointer;