We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ef789e commit b9ddcd2Copy full SHA for b9ddcd2
1 file changed
demos/sim_hand_poses/main.js
@@ -393,6 +393,17 @@ class ManualSimHandScene extends xb.Script {
393
}
394
395
396
+class DisplayedPoseSync extends xb.Script {
397
+ constructor(syncDisplayedPose) {
398
+ super();
399
+ this._syncDisplayedPose = syncDisplayedPose;
400
+ }
401
+
402
+ update() {
403
+ this._syncDisplayedPose();
404
405
+}
406
407
class GestureHUD extends xb.Script {
408
init() {
409
this._active = {
@@ -575,9 +586,8 @@ async function start() {
575
586
const syncDisplayedPose = () => {
576
587
syncControlsToRotations();
577
588
updateJsonViews();
578
- requestAnimationFrame(syncDisplayedPose);
579
589
};
580
- syncDisplayedPose();
590
+ xb.add(new DisplayedPoseSync(syncDisplayedPose));
581
591
582
592
createPromptBubble(async (description) => {
583
593
xb.core.options.ai.gemini.config = {
0 commit comments