This commit is contained in:
mischa 2024-03-14 14:48:15 +08:00 committed by MrGadget
parent ae0a6a9c3e
commit c8f022584a

View File

@ -10,6 +10,7 @@
// instead of real physics. It's not 100% correct - but it sure is fast!
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using UnityEngine;
namespace Mirror
@ -372,6 +373,7 @@ void UpdateServer()
}
// movement detection is virtual, in case projects want to use other methods.
[MethodImpl(MethodImplOptions.AggressiveInlining)]
protected virtual bool IsMoving() =>
// straight forward implementation
// predictedRigidbody.velocity.magnitude >= motionSmoothingVelocityThreshold ||