This commit is contained in:
Mister_Nebula 2020-08-14 11:22:51 +01:00
parent 68f3cf6dbf
commit 629ca73dcf

View File

@ -37,10 +37,11 @@ namespace QSB.TransformSync
protected void Init()
{
ReferenceTransform = Locator.GetCenterOfTheUniverse().GetStaticReferenceFrame().transform;
SyncedTransform = hasAuthority ? InitLocalTransform() : InitRemoteTransform();
if (!hasAuthority)
{
SyncedTransform.position = Locator.GetRootTransform().position;
SyncedTransform.position = ReferenceTransform.position;
}
_isInitialized = true;
}