mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-25 15:35:22 +00:00
extra syncyness
This commit is contained in:
parent
8210793f56
commit
6dc9135be1
@ -81,4 +81,4 @@ namespace QSB.OrbSync.Patches
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,4 @@
|
||||
using QSB.SectorSync;
|
||||
using QSB.Syncs;
|
||||
using QSB.Syncs.Sectored.Rigidbodies;
|
||||
using QSB.Utility;
|
||||
using QSB.WorldSync;
|
||||
|
Loading…
x
Reference in New Issue
Block a user