added global speed for agv
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user