mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
syntax
This commit is contained in:
parent
1fb4f3c079
commit
04016bdab4
@ -355,7 +355,13 @@ void UpdateClient()
|
||||
|
||||
// first, see if there's a snapshot at blendingEndTime already.
|
||||
// this would be super precise.
|
||||
if (SnapshotInterpolation.TrySample(clientSnapshots, clientTimeline + blendingTime, out int from, out int to, out double t))
|
||||
// returns false if there isn't any yet.
|
||||
if (SnapshotInterpolation.TrySample(
|
||||
clientSnapshots,
|
||||
clientTimeline + blendingTime,
|
||||
out int from,
|
||||
out int to,
|
||||
out double t))
|
||||
{
|
||||
// interpolate between from & to
|
||||
NTSnapshot fromSnapshot = clientSnapshots[from];
|
||||
|
Loading…
Reference in New Issue
Block a user