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:
parent
2cda7f1edc
commit
776f08f610
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue