Removed debug code from PhysicsBody.ApplyLinearImpulse

This commit is contained in:
Joonas Rikkonen
2018-04-18 17:27:06 +03:00
parent c6f3d0c1b8
commit 395ca3c5c2
@@ -375,16 +375,8 @@ namespace Barotrauma
/// </summary>
public void ApplyLinearImpulse(Vector2 impulse, float maxVelocity)
{
float currSpeed = body.LinearVelocity.Length();
if (currSpeed > 100.0f)
{
int sdfgsdfg = 1;
}
float currSpeed = body.LinearVelocity.Length();
Vector2 velocityAddition = impulse / Mass;
Vector2 newVelocity = body.LinearVelocity + velocityAddition;
newVelocity = newVelocity.ClampLength(Math.Max(currSpeed, maxVelocity));