fix speed on camera movment (final fix)

This commit is contained in:
alex-mcneilly
2025-05-28 14:22:41 -07:00
committed by Diego Marcos
parent cdf7b02838
commit 8da970b4f4
+1 -1
View File
@@ -221,7 +221,7 @@
// camera movement
const targetZ = 90.5;
const startZ = 104;
const duration = 9;
const duration = 90;
const progress = Math.min(1, t / duration);
const smoothProgress = Math.sin(progress * Math.PI * 0.5);
camera.position.z = startZ + (targetZ - startZ) * smoothProgress;