mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
QSBAngler: account for fixed dt with velocity
This commit is contained in:
parent
4e445568e9
commit
583b05a637
@ -28,7 +28,7 @@ public class QSBAngler : LinkedWorldObject<AnglerfishController, AnglerTransform
|
||||
return;
|
||||
}
|
||||
|
||||
TargetVelocity = TargetTransform.position - _lastTargetPosition;
|
||||
TargetVelocity = (TargetTransform.position - _lastTargetPosition) / Time.fixedDeltaTime;
|
||||
_lastTargetPosition = TargetTransform.position;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user