mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-06-27 16:10:34 +08:00
Fixed interp issue related to prior snapping issue
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user