Fixed smoothing default and removed override in server game example

This commit is contained in:
Jeremiah Billmann
2013-07-19 21:14:27 -04:00
parent 1765c2a1a1
commit e4e424e74b
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -14,7 +14,6 @@ function Game (sockets) {
logging: true,
interpolation: true,
clientSidePrediction: true,
smoothingFactor: this.physicsDelta * 20,
worldState: this.worldState
});
}
+1 -1
View File
@@ -50,7 +50,7 @@ GarageServer.prototype.registerSocketEvents = function (options) {
}
socket.emit('state', {
physicsDelta: (options.physicsInterval ? options.physicsInterval : 15) / 1000,
smoothingFactor: options.smoothingFactor ? options.smoothingFactor : 1,
smoothingFactor: options.smoothingFactor ? options.smoothingFactor : 0.3,
interpolation: options.interpolation ? options.interpolation : false,
interpolationDelay: options.interpolationDelay ? options.interpolationDelay : 100,
pingInterval: options.pingInterval ? options.pingInterval : 2000,