mirror of
https://github.com/RGBCube/rgbcube.github.io
synced 2025-05-18 15:45:08 +00:00
Start spinning slowly and slowly speed up
This commit is contained in:
parent
cd8a891bd7
commit
d2c919227a
1 changed files with 2 additions and 1 deletions
3
cube.js
3
cube.js
|
@ -208,7 +208,8 @@ const orientation = {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (window.performance.now() - mouse.lastMove > 10_000) {
|
if (window.performance.now() - mouse.lastMove > 10_000) {
|
||||||
velocity = new Vec3(1, 1, -1);
|
const impulse = new Vec3(1, 1, -1);
|
||||||
|
velocity = Vec3.sum(impulse.scale(effectiveDelta * 3), velocity);
|
||||||
}
|
}
|
||||||
|
|
||||||
const axis = new Vec3(velocity.x, velocity.y, velocity.z)
|
const axis = new Vec3(velocity.x, velocity.y, velocity.z)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue