added global speed for agv

This commit is contained in:
2025-04-11 18:08:53 +05:30
parent 1256f33342
commit 3eecf30541
3 changed files with 12 additions and 6 deletions

View File

@@ -377,8 +377,7 @@ const ProcessAnimator: React.FC<ProcessContainerProps> = ({
if (!isLastPoint) {
const nextPoint = path[nextPointIdx];
const distance =
path[stateRef.currentIndex].distanceTo(nextPoint);
const distance = path[stateRef.currentIndex].distanceTo(nextPoint);
const effectiveSpeed = stateRef.speed * speedRef.current;
const movement = effectiveSpeed * delta;