Unstable v0.1100.0.4 (November 11th 2020)

This commit is contained in:
Joonas Rikkonen
2020-11-06 20:12:15 +02:00
parent 6b36bf809d
commit b772654326
297 changed files with 12502 additions and 4277 deletions
@@ -1,4 +1,5 @@
using FarseerPhysics.Dynamics;
using Microsoft.Xna.Framework;
namespace Barotrauma
{
@@ -19,7 +20,7 @@ namespace Barotrauma
public static float DisplayToRealWorldRatio = 1.0f / 100.0f;
public const float DisplayToSimRation = 100.0f;
public static bool TryParseCollisionCategory(string categoryName, out Category category)
{
category = Category.None;
@@ -254,6 +254,8 @@ namespace Barotrauma
/// </summary>
public float TransformedRotation => TransformRotation(Rotation, Dir);
public float TransformRotation(float rotation) => TransformRotation(rotation, dir);
public static float TransformRotation(float rot, float dir) => dir < 0 ? rot - MathHelper.Pi : rot;
public Vector2 LinearVelocity