Fix input text for effects

This commit is contained in:
osiu97
2026-07-08 21:44:08 +02:00
parent ebc634b4ee
commit d60fa36c83
2 changed files with 5 additions and 3 deletions
+2
View File
@@ -114,6 +114,8 @@ export const MotionEffects = {
// Called to apply per-waypoint visual perturbations
applyPerturbation(px, py, nx, ny, fraction, distance, mode) {
if (fraction === 1) return { px, py }; // Always hit exact target at the end
if (mode === 'snaky') {
const cycles = Math.max(1, Math.floor(distance / 50));
const offset = Math.sin(fraction * Math.PI * 2 * cycles) * 30; // 30mm amplitude