Implementing effects. Closes #2 #19

Merged
osiu97 merged 8 commits from effects into main 2026-07-08 21:47:35 +02:00
Showing only changes of commit a28dd7543d - Show all commits
+3
View File
@@ -61,6 +61,9 @@ export const MotionEffects = {
getQueueAction(mode, maxDist, blendThreshold) { getQueueAction(mode, maxDist, blendThreshold) {
if (mode === 'jumpy') { if (mode === 'jumpy') {
if (maxDist <= 5) return { action: 'wait', delay: 100 }; if (maxDist <= 5) return { action: 'wait', delay: 100 };
} else if (mode === 'hesitant') {
// Lower blend threshold prevents blasting all speed-change waypoints instantly
if (maxDist <= 30) return { action: 'blend' };
} else { } else {
if (maxDist <= blendThreshold) return { action: 'blend' }; if (maxDist <= blendThreshold) return { action: 'blend' };
} }