QSBAngler: account for fixed dt with velocity

This commit is contained in:
JohnCorby 2022-04-10 15:19:59 -07:00
parent 4e445568e9
commit 583b05a637

View File

@ -28,7 +28,7 @@ public class QSBAngler : LinkedWorldObject<AnglerfishController, AnglerTransform
return;
}
TargetVelocity = TargetTransform.position - _lastTargetPosition;
TargetVelocity = (TargetTransform.position - _lastTargetPosition) / Time.fixedDeltaTime;
_lastTargetPosition = TargetTransform.position;
}
}