Skip to content

Commit 4163a7e

Browse files
author
Avaer Kazmer
authored
Fix pose position set
1 parent d619bd9 commit 4163a7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ avatar.setMicrophoneMediaStream(microphoneMediaStream); // set microphoneMediaSt
6969
7070
function animate() {
7171
const now = Date.now();
72-
avatar.inputs.hmd.position.set(1.5 + Math.sin((now%2000)/2000*Math.PI*2)*0.5); // or, get pose from WebXR
72+
avatar.inputs.hmd.position.set(0, 1.5 + Math.sin((now%2000)/2000*Math.PI*2)*0.5, 0); // or, get pose from WebXR
7373
avatar.leftGamepad.hmd.position.copy(avatar.inputs.hmd.position).add(new THREE.Vector3(0.2, -0.3, -0.3));
7474
avatar.leftGamepad.pointer = 0.5; // for finger animation
7575
avatar.leftGamepad.grip = 1;

0 commit comments

Comments
 (0)