Forráskód Böngészése

Merge pull request #490 from Azaezel/buoyancy

Buoyancy
SilentMike 12 éve
szülő
commit
0e1ed4683b
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      Engine/source/T3D/player.cpp

+ 1 - 1
Engine/source/T3D/player.cpp

@@ -3114,7 +3114,7 @@ void Player::updateMove(const Move* move)
          if ( currHeight + mVelocity.z * TickSec * C > mLiquidHeight )
          if ( currHeight + mVelocity.z * TickSec * C > mLiquidHeight )
             buoyancyForce *= M;
             buoyancyForce *= M;
                   
                   
-         //mVelocity.z -= buoyancyForce;
+         mVelocity.z -= buoyancyForce;
       }
       }
    }
    }