Fixed water scroll speed

This commit is contained in:
juanjp600
2016-09-18 15:35:35 -03:00
parent 4cd6888622
commit 5da2bc9523
6 changed files with 29 additions and 5 deletions

View File

@@ -83,6 +83,11 @@ namespace Barotrauma
/// <param name="gameTime">Provides a snapshot of timing values.</param>
public override void Update(double deltaTime)
{
if (Hull.renderer != null)
{
Hull.renderer.ScrollWater();
}
//the accumulator code is based on this article:
//http://gafferongames.com/game-physics/fix-your-timestep/
Physics.accumulator += deltaTime;