From e2f83e6a5d25cf844a0f00397bfbc33b678215a9 Mon Sep 17 00:00:00 2001 From: omar salah <114373468+omarsalaheldieen@users.noreply.github.com> Date: Fri, 14 Jun 2024 02:09:23 +0300 Subject: [PATCH] Update SCript --- assets/arTab/ar1.html | 1 + assets/arTab/ar2.html | 1 + assets/arTab/ar3.html | 1 + rotation_limit.js | 1 - 4 files changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/arTab/ar1.html b/assets/arTab/ar1.html index 54dc012..fc62dd9 100644 --- a/assets/arTab/ar1.html +++ b/assets/arTab/ar1.html @@ -4,6 +4,7 @@ + diff --git a/assets/arTab/ar2.html b/assets/arTab/ar2.html index 043de6c..fefd6df 100644 --- a/assets/arTab/ar2.html +++ b/assets/arTab/ar2.html @@ -4,6 +4,7 @@ + diff --git a/assets/arTab/ar3.html b/assets/arTab/ar3.html index 043de6c..fefd6df 100644 --- a/assets/arTab/ar3.html +++ b/assets/arTab/ar3.html @@ -4,6 +4,7 @@ + diff --git a/rotation_limit.js b/rotation_limit.js index 2c1ff4d..55ec00b 100644 --- a/rotation_limit.js +++ b/rotation_limit.js @@ -5,7 +5,6 @@ AFRAME.registerComponent('rotation-limiter', { rotation.x = Math.max(0, Math.min(90, rotation.x)); rotation.y = Math.max(0, Math.min(90, rotation.y)); - rotation.z = Math.max(0, Math.min(90, rotation.z)); el.setAttribute('rotation', rotation); }