Skip to content

Commit 66425fb

Browse files
committed
fix: movement in webxr(vr)
1 parent 789837c commit 66425fb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/xr/WebXRInput.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,9 @@ function processThumbstickInput(
359359
const orientationMat = MutableMatrix33.fromCopyQuaternion(viewerData.viewerOrientation);
360360
const rotateMat = orientationMat.multiply(MutableMatrix33.rotateY(viewerData.viewerAzimuthAngle.x));
361361
rotateMat.multiplyVectorTo(deltaVector, deltaVector as MutableVector3);
362+
if (handed === 'left') {
363+
deltaVector.y = 0;
364+
}
362365
viewerData.viewerTranslate.add(deltaVector);
363366
}
364367

0 commit comments

Comments
 (0)