From 0646f0286f591f77583cf9024b9a050bca8d2c96 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Mon, 18 Dec 2023 11:48:48 +0300 Subject: [PATCH] Make Velocity user accessible --- index.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 0833d5a..67c2714 100644 --- a/index.html +++ b/index.html @@ -277,6 +277,7 @@ let friction = 0.01; let sensitivity = 0.01; + let velocity = 0; const orientation = { __value: new Quaternion({x: 0, y: 0, z: 0, w: 1}), @@ -301,8 +302,6 @@ }, }; - let velocity = 0; - document.addEventListener("mouseleave", () => { mouse.down = false; }); @@ -346,4 +345,4 @@ - + \ No newline at end of file