From 8d4f49e055a146802bae26c2099b0390adcafbfa Mon Sep 17 00:00:00 2001 From: RGBCube Date: Tue, 19 Dec 2023 13:53:49 +0300 Subject: [PATCH] Multiply by Pi to get a full rotation for some reason --- cube.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cube.js b/cube.js index 0184837..a1325ce 100644 --- a/cube.js +++ b/cube.js @@ -75,7 +75,7 @@ class Quat { } apply() { - __cube.style.transform = `rotate3d(${this.x}, ${this.y}, ${this.z}, ${this.w}rad)`; + __cube.style.transform = `rotate3d(${this.x}, ${this.y}, ${this.z}, ${this.w * 3.1415}rad)`; } }