mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-08-14 12:00:08 +08:00
Progress: Interpolation Correction
This commit is contained in:
@@ -19,7 +19,7 @@ GarageServerGame.prototype.updateState = function (options) {
|
||||
|
||||
GarageServerGame.prototype.updatePlayers = function (options) {
|
||||
var currentTime = new Date().getTime() - this.startTime,
|
||||
state = { time: currentTime, delta: this.physicsInterval, playerStates: [] };
|
||||
state = { time: currentTime, physicsDelta: this.physicsInterval, stateDelta: this.stateInterval, playerStates: [] };
|
||||
|
||||
this.players.forEach(function (player) {
|
||||
state.playerStates.push({ id: player.client.id, state: player.state, seq: player.sequence });
|
||||
|
||||
Reference in New Issue
Block a user