(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
@@ -732,7 +732,7 @@ namespace Barotrauma
}
}
SetTransform((Vector2)targetPosition, targetRotation == null ? body.Rotation : (float)targetRotation);
SetTransformIgnoreContacts((Vector2)targetPosition, targetRotation == null ? body.Rotation : (float)targetRotation);
targetPosition = null;
targetRotation = null;
}