1
Fork 0
mirror of https://github.com/RGBCube/rgbcube.github.io synced 2025-05-14 05:54:58 +00:00

Start spinning slowly and slowly speed up

This commit is contained in:
RGBCube 2023-12-20 07:28:49 +03:00
parent cd8a891bd7
commit d2c919227a
No known key found for this signature in database

View file

@ -208,7 +208,8 @@ const orientation = {
}
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)