mirror of
https://github.com/wassname/GarageServer.IO.git
synced 2026-07-16 01:10:07 +08:00
Fixed smoothing default and removed override in server game example
This commit is contained in:
@@ -14,7 +14,6 @@ function Game (sockets) {
|
||||
logging: true,
|
||||
interpolation: true,
|
||||
clientSidePrediction: true,
|
||||
smoothingFactor: this.physicsDelta * 20,
|
||||
worldState: this.worldState
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user