Browse Source

fix indexing of confidence value and ID.

Alex Tran 5 years ago
parent
commit
f54817651d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/XR/features/WebXRFeaturePointSystem.ts

+ 2 - 2
src/XR/features/WebXRFeaturePointSystem.ts

@@ -119,8 +119,8 @@ export class WebXRFeaturePointSystem extends WebXRAbstractFeature {
                              featurePointRawData[rawIndex],
                              featurePointRawData[rawIndex + 1],
                              featurePointRawData[rawIndex + 2]),
-                        confidenceValue: featurePointRawData[4],
-                        id: featurePointRawData[5]
+                        confidenceValue: featurePointRawData[rawIndex + 3],
+                        id: featurePointRawData[rawIndex + 4]
                         };
                 }