Fix airlock dock rotation (#11581)

This commit is contained in:
metalgearsloth
2022-10-04 12:47:36 +11:00
committed by GitHub
parent 65d0bdba63
commit 3d0bac9cf8

View File

@@ -75,7 +75,7 @@ public class DockingControl : Control
Angle == null ||
!_entManager.TryGetComponent<TransformComponent>(GridEntity, out var gridXform)) return;
var rotation = Matrix3.CreateRotation(Angle.Value);
var rotation = Matrix3.CreateRotation(-Angle.Value + Math.PI);
var matrix = Matrix3.CreateTranslation(-Coordinates.Value.Position);
// Draw the fixtures around the dock before drawing it