1
Fork 0
mirror of https://github.com/RGBCube/Site synced 2025-08-01 13:37:49 +00:00

Rename orientation to orient as that shadows deprecated stuff

This commit is contained in:
RGBCube 2024-01-09 20:06:55 +03:00
parent 2cda7f1edc
commit 776f08f610
No known key found for this signature in database

View file

@ -92,7 +92,7 @@ let friction = 3;
let sensitivity = 0.01; let sensitivity = 0.01;
let velocity = Vec3.zero(); let velocity = Vec3.zero();
const orientation = { const orient = {
__cube: document.querySelector(".cube"), __cube: document.querySelector(".cube"),
__value: new Quat(0, 0, 0, 1), __value: new Quat(0, 0, 0, 1),
@ -164,7 +164,7 @@ const orientation = {
const rotation = Quat.fromAxis(axis); const rotation = Quat.fromAxis(axis);
orientation.set(Quat.mul(rotation, orientation.get())); orient.set(Quat.mul(rotation, orient.get()));
}; };
document.addEventListener("mousemove", handleMove); document.addEventListener("mousemove", handleMove);
@ -218,7 +218,7 @@ const orientation = {
const rotation = Quat.fromAxis(axis); const rotation = Quat.fromAxis(axis);
orientation.set(Quat.mul(rotation, orientation.get())); orient.set(Quat.mul(rotation, orient.get()));
} }
requestAnimationFrame(updateFrame); requestAnimationFrame(updateFrame);