Fixes all the rotation bugs. (#3365)
This commit is contained in:
committed by
GitHub
parent
6d48154617
commit
63947a6d35
@@ -87,15 +87,15 @@ namespace Content.Shared.Atmos
|
||||
{
|
||||
return direction switch
|
||||
{
|
||||
AtmosDirection.East => Angle.FromDegrees(0),
|
||||
AtmosDirection.North => Angle.FromDegrees(90),
|
||||
AtmosDirection.West => Angle.FromDegrees(180),
|
||||
AtmosDirection.South => Angle.FromDegrees(270),
|
||||
AtmosDirection.East => Angle.FromDegrees(90),
|
||||
AtmosDirection.North => Angle.FromDegrees(180),
|
||||
AtmosDirection.West => Angle.FromDegrees(-90),
|
||||
AtmosDirection.South => Angle.FromDegrees(0),
|
||||
|
||||
AtmosDirection.NorthEast => Angle.FromDegrees(45),
|
||||
AtmosDirection.NorthWest => Angle.FromDegrees(135),
|
||||
AtmosDirection.SouthWest => Angle.FromDegrees(225),
|
||||
AtmosDirection.SouthEast => Angle.FromDegrees(315),
|
||||
AtmosDirection.NorthEast => Angle.FromDegrees(135),
|
||||
AtmosDirection.NorthWest => Angle.FromDegrees(-135),
|
||||
AtmosDirection.SouthWest => Angle.FromDegrees(-45),
|
||||
AtmosDirection.SouthEast => Angle.FromDegrees(45),
|
||||
|
||||
_ => throw new ArgumentOutOfRangeException(nameof(direction), $"It was {direction}."),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user