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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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