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

@@ -454,7 +454,7 @@ namespace Content.Server.GameObjects.Components.PA
Vector2i RotateOffset(in Vector2i vec) Vector2i RotateOffset(in Vector2i vec)
{ {
var rot = new Angle(Owner.Transform.LocalRotation + Math.PI / 2); var rot = new Angle(Owner.Transform.LocalRotation);
return (Vector2i) rot.RotateVec(vec); return (Vector2i) rot.RotateVec(vec);
} }
} }

View File

@@ -82,9 +82,9 @@ namespace Content.Server.GameObjects.Components.PA
physicsComponent physicsComponent
.EnsureController<BulletController>() .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()); Timer.Spawn(3000, () => Owner.Delete());
} }
} }

View File

@@ -0,0 +1,4 @@
author: PJB
changes:
- type: Fix
message: Fixed the Particle Accelerator

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -32,7 +32,13 @@
}, },
{ {
"name": "unlitp3", "name": "unlitp3",
"directions": 4 "directions": 4,
"delays": [
[0.5, 0.5],
[0.5, 0.5],
[0.5, 0.5],
[0.5, 0.5]
]
}, },
{ {
"name": "boxw", "name": "boxw",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 551 B

After

Width:  |  Height:  |  Size: 511 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 549 B

After

Width:  |  Height:  |  Size: 526 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 573 B

After

Width:  |  Height:  |  Size: 533 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 605 B

After

Width:  |  Height:  |  Size: 537 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 625 B

After

Width:  |  Height:  |  Size: 870 B