Skip to content

Commit

Permalink
Revert "direct import for hand tracking"
Browse files Browse the repository at this point in the history
This reverts commit e966592.
  • Loading branch information
Saffo, David committed Feb 5, 2024
1 parent 36cbe19 commit 975b85a
Show file tree
Hide file tree
Showing 3 changed files with 2,394 additions and 13,638 deletions.
4 changes: 2 additions & 2 deletions anu-examples/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//Contains the styles for our page, currently setting body,app div, and canvas to 100% h&w
import './style.css'
import * as BABYLON from "@babylonjs/core";
import { WebXRHandTracking } from '@babylonjs/core';
// import { WebXRGenericHandController } from '@babylonjs/core';

//Import all of babylonjs, you most likely want to import individual methods as needed
import {scatterplot3D } from './examples/ScatterPlots/Scatterplot3D';
Expand Down Expand Up @@ -107,7 +107,7 @@ if (!featureManager) {
throw Error("no base experience", featureManager)
} else {
console.log(featureManager)
defaultXRExperience.baseExperience.featuresManager.enableFeature(WebXRHandTracking, "latest", {
defaultXRExperience.baseExperience.featuresManager.enableFeature(BABYLON.WebXRFeatureName.HAND_TRACKING, "latest", {
xrInput: defaultXRExperience.input
});
}
Expand Down
16,026 changes: 2,391 additions & 13,635 deletions docs/public/assets/index.0076bd2b.js → docs/public/assets/index.c8cae16f.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/public/examples.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<title>AnuJS Visualization Examples</title>


<script type="module" crossorigin src="/anu/assets/index.0076bd2b.js"></script>
<script type="module" crossorigin src="/anu/assets/index.c8cae16f.js"></script>
<link rel="stylesheet" href="/anu/assets/index.176030ad.css">
</head>
<body>
Expand Down

0 comments on commit 975b85a

Please sign in to comment.