Implementing effects. Closes #2 #19
@@ -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' };
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user