Fixed smoothing default and removed override in server game example

This commit is contained in:
Jeremiah Billmann committed 2013-07-19 21:14:27 -04:00
1 parent 1765c2a1a1
commit e4e424e74b
2 files changed
+1 -2

No files matched your search

+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,