Fixed interp bug

This commit is contained in:
Jeremiah Billmann
2013-08-03 19:04:11 -04:00
parent 84588e2115
commit 8e68e9933f
+3
View File
@@ -405,6 +405,9 @@ var GarageServerIO = (function (socketio) {
newState = _options.onInterpolation(positions.previous.state, positions.target.state, amount);
entity.state = newState = _options.onInterpolation(entity.state, newState, _stateController.smoothingFactor);
}
else {
entity.state = entity.latestUpdate().state;
}
}
});
},