make rigidbody syncs still valid even if suspended

This commit is contained in:
JohnCorby 2022-01-21 23:13:48 -08:00
parent 5270b9dff9
commit ba5defecbd
3 changed files with 1 additions and 5 deletions

View File

@ -15,7 +15,7 @@ namespace QSB.OrbSync.TransformSync
/// normally prints error when attached object is null.
/// this overrides it so that doesn't happen, since the orb can be destroyed.
/// </summary>
protected override bool CheckValid() => _attachedBody && base.CheckValid() && !_attachedBody.IsSuspended();
protected override bool CheckValid() => _attachedBody && base.CheckValid();
protected override bool UseInterpolation => true;
protected override float DistanceLeeway => 1f;

View File

@ -6,8 +6,6 @@ namespace QSB.Syncs.Sectored.Rigidbodies
{
public abstract class SectoredRigidbodySync : BaseSectoredSync
{
protected override bool CheckValid() => base.CheckValid() && !AttachedRigidbody.IsSuspended();
private const float PositionMovedThreshold = 0.05f;
private const float AngleRotatedThreshold = 0.05f;
private const float VelocityChangeThreshold = 0.05f;

View File

@ -6,8 +6,6 @@ namespace QSB.Syncs.Unsectored.Rigidbodies
{
public abstract class UnsectoredRigidbodySync : BaseUnsectoredSync
{
protected override bool CheckValid() => base.CheckValid() && !AttachedRigidbody.IsSuspended();
private const float PositionMovedThreshold = 0.05f;
private const float AngleRotatedThreshold = 0.05f;
private const float VelocityChangeThreshold = 0.05f;