mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 19:10:32 +00:00
inlining
This commit is contained in:
parent
ae0a6a9c3e
commit
c8f022584a
@ -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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user