PA fixes.

Improved unlit layers for control box.

Fixed rotation bugs.

Fixes #3479
This commit is contained in:
Pieter-Jan Briers
2021-03-04 12:17:29 +01:00
parent 86ba8fa96a
commit 4a584b778b
10 changed files with 14 additions and 4 deletions

View File

@@ -82,9 +82,9 @@ namespace Content.Server.GameObjects.Components.PA
physicsComponent
.EnsureController<BulletController>()
.LinearVelocity = angle.ToVec() * 20f;
.LinearVelocity = angle.ToWorldVec() * 20f;
Owner.Transform.LocalRotation = new Angle(angle + Angle.FromDegrees(180));
Owner.Transform.LocalRotation = angle;
Timer.Spawn(3000, () => Owner.Delete());
}
}