From 776f08f610e93ae054b452e6059ac8c897a5ecfa Mon Sep 17 00:00:00 2001 From: RGBCube Date: Tue, 9 Jan 2024 20:06:55 +0300 Subject: [PATCH] Rename orientation to orient as that shadows deprecated stuff --- src/page/cube/cube.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/page/cube/cube.js b/src/page/cube/cube.js index 62cf921..b170cc5 100644 --- a/src/page/cube/cube.js +++ b/src/page/cube/cube.js @@ -92,7 +92,7 @@ let friction = 3; let sensitivity = 0.01; let velocity = Vec3.zero(); -const orientation = { +const orient = { __cube: document.querySelector(".cube"), __value: new Quat(0, 0, 0, 1), @@ -164,7 +164,7 @@ const orientation = { const rotation = Quat.fromAxis(axis); - orientation.set(Quat.mul(rotation, orientation.get())); + orient.set(Quat.mul(rotation, orient.get())); }; document.addEventListener("mousemove", handleMove); @@ -218,7 +218,7 @@ const orientation = { const rotation = Quat.fromAxis(axis); - orientation.set(Quat.mul(rotation, orientation.get())); + orient.set(Quat.mul(rotation, orient.get())); } requestAnimationFrame(updateFrame);