(480a052a8) Minor physics optimization: use SetTransformIgnoreContacts when correcting physicsbody positions

This commit is contained in:
Joonas Rikkonen
2019-04-23 11:15:32 +03:00
parent da3e325ffc
commit 9c5d25a2da
4 changed files with 13 additions and 7 deletions
@@ -105,7 +105,7 @@ namespace Barotrauma
if (Vector2.DistanceSquared(bodyPos, levelWall.Body.Position) > 0.5f)
{
levelWall.Body.SetTransform(bodyPos, levelWall.Body.Rotation);
levelWall.Body.SetTransformIgnoreContacts(ref bodyPos, levelWall.Body.Rotation);
}
}
}