mirror of
https://github.com/RGBCube/rgbcube.github.io
synced 2025-06-03 06:38:16 +00:00
Make Velocity user accessible
This commit is contained in:
parent
56215e379b
commit
0646f0286f
1 changed files with 2 additions and 3 deletions
|
@ -277,6 +277,7 @@
|
||||||
|
|
||||||
let friction = 0.01;
|
let friction = 0.01;
|
||||||
let sensitivity = 0.01;
|
let sensitivity = 0.01;
|
||||||
|
let velocity = 0;
|
||||||
|
|
||||||
const orientation = {
|
const orientation = {
|
||||||
__value: new Quaternion({x: 0, y: 0, z: 0, w: 1}),
|
__value: new Quaternion({x: 0, y: 0, z: 0, w: 1}),
|
||||||
|
@ -301,8 +302,6 @@
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
let velocity = 0;
|
|
||||||
|
|
||||||
document.addEventListener("mouseleave", () => {
|
document.addEventListener("mouseleave", () => {
|
||||||
mouse.down = false;
|
mouse.down = false;
|
||||||
});
|
});
|
||||||
|
@ -346,4 +345,4 @@
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
Loading…
Add table
Add a link
Reference in a new issue