Improved glitchy interpolation / Updated uCore

This commit is contained in:
Anuken
2018-07-12 11:38:09 -04:00
parent b5e8e54107
commit 1f18e7beed
5 changed files with 21 additions and 19 deletions

View File

@@ -38,11 +38,12 @@ public class Interpolator {
public void update(){
/*
if(pos.dst(target) > 128){
pos.set(target);
lastUpdated = 0;
updateSpacing = 16;
}
}*/
if(lastUpdated != 0 && updateSpacing != 0){
float timeSinceUpdate = TimeUtils.timeSinceMillis(lastUpdated);