mirror of
https://github.com/RGBCube/rgbcube.github.io
synced 2025-05-25 18:45:06 +00:00
Multiply by Pi to get a full rotation for some reason
This commit is contained in:
parent
ca181a31f9
commit
8d4f49e055
1 changed files with 1 additions and 1 deletions
2
cube.js
2
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)`;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue