From 17b09f4b21bb54fc781d35b732334cff83fff13c Mon Sep 17 00:00:00 2001 From: Remy Mellet Date: Thu, 12 Sep 2024 12:06:56 +0200 Subject: [PATCH] fix the default vr position avoid having the head in the floor at start --- .gitignore | 2 +- splatxr.js | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 5ca0973..4befed3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ .DS_Store - +.idea diff --git a/splatxr.js b/splatxr.js index 535917c..debf7c1 100644 --- a/splatxr.js +++ b/splatxr.js @@ -1,7 +1,12 @@ let refSpace; let gl; -let worldTransform = [0.99, -0.05, 0.16, 0, -0.05, -1, -0.05, 0, 0.16, 0.04, -0.99, 0, -0.08, 1.63, -0.1, 1]; +let worldTransform = [ + 1, 0, 0, 0, + 0, -1, 0, 0, + 0, 0, -1, 0, + 0, 0, 0, 1 +]; const params = new URLSearchParams(location.search); try {