Fixed interp issue related to prior snapping issue

This commit is contained in:
Jeremiah Billmann
2013-09-20 11:50:04 -05:00
parent b5ae81e936
commit 191ebe0bef
2 changed files with 4 additions and 0 deletions
+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 if (entity.inputController.sequenceNumber === 1) {
entity.state = entity.latestUpdate().state;
}
}
});
},