extra syncyness

This commit is contained in:
JohnCorby 2021-12-13 22:22:19 -08:00
parent 8210793f56
commit 6dc9135be1
3 changed files with 8 additions and 7 deletions

View File

@ -81,4 +81,4 @@ namespace QSB.OrbSync.Patches
return false;
}
}
}
}

View File

@ -76,13 +76,14 @@ namespace QSB.OrbSync.TransformSync
protected override bool UpdateTransform()
{
if (HasAuthority)
if (!base.UpdateTransform())
{
transform.position = ReferenceTransform.ToRelPos(AttachedObject.position);
return false;
}
else
if (!HasAuthority)
{
Orb.SetTargetPosition(ReferenceTransform.FromRelPos(transform.position));
Orb.SetTargetPosition(AttachedObject.position);
}
return true;
@ -91,7 +92,8 @@ namespace QSB.OrbSync.TransformSync
protected override Transform InitLocalTransform() => GetTransform();
protected override Transform InitRemoteTransform() => GetTransform();
protected override float DistanceLeeway => 1f;
public override bool IsReady => WorldObjectManager.AllObjectsReady;
public override bool UseInterpolation => false;
public override bool UseInterpolation => true;
}
}

View File

@ -1,5 +1,4 @@
using QSB.SectorSync;
using QSB.Syncs;
using QSB.Syncs.Sectored.Rigidbodies;
using QSB.Utility;
using QSB.WorldSync;