Reset ghost rotation to zero on follow (#8256)

This commit is contained in:
Kara
2022-05-18 00:22:09 -07:00
committed by GitHub
parent b59c261705
commit 0509f5f630

View File

@@ -72,6 +72,7 @@ public sealed class FollowerSystem : EntitySystem
var xform = Transform(follower); var xform = Transform(follower);
xform.AttachParent(entity); xform.AttachParent(entity);
xform.LocalPosition = Vector2.Zero; xform.LocalPosition = Vector2.Zero;
xform.LocalRotation = Angle.Zero;
EnsureComp<OrbitVisualsComponent>(follower); EnsureComp<OrbitVisualsComponent>(follower);