Handheld sonars only consume batteries when they're on, endworms aren't "flipped" when they turn around, every limb is checked in SubmarineBody.DisplaceCharacters (instead of just reflimb)

This commit is contained in:
Regalis
2016-04-24 20:31:26 +03:00
parent d4816c3ee9
commit c08029dea8
8 changed files with 52 additions and 32 deletions
+1 -1
View File
@@ -313,7 +313,7 @@ namespace Barotrauma
prevPosition = targetPosition;
}
body.SetTransform(targetPosition, targetRotation);
body.SetTransform(targetPosition, targetRotation == 0.0f ? body.Rotation : targetRotation);
body.LinearVelocity = targetVelocity;
body.AngularVelocity = targetAngularVelocity;
targetPosition = Vector2.Zero;