Make transform handlestate set coordinates and not attachparent (#2965)

This makes the EntParentChangedMessage have the new position when it's issued.
This commit is contained in:
metalgearsloth
2022-06-23 14:29:12 +10:00
committed by GitHub
parent 2d96e0cda1
commit a05b864952
@@ -383,7 +383,7 @@ public abstract partial class SharedTransformSystem
#endif
}
component.AttachParent(Transform(newParentId));
component.Coordinates = new EntityCoordinates(newParentId, newState.LocalPosition);
}
rebuildMatrices = true;