Enum SmoothingAction
Denotes how GhostFieldAttribute values are deserialized when received from snapshots.
Namespace: Unity.NetCode
Assembly: Unity.NetCode.dll
Syntax
public enum SmoothingAction
Fields
Name | Description |
---|---|
Clamp | The GhostField value will clamp to the latest snapshot value as it's available. |
Interpolate | Interpolate the GhostField value between the latest two processed snapshot values, and if no data is available for the next tick, clamp at the latest snapshot value. Tweak the ClientTickRate interpolation values if too jittery, or too delayed. |
InterpolateAndExtrapolate | Interpolate the GhostField value between snapshot values, and if no data is available for the next tick, the next value is linearly extrapolated using the previous two snapshot values. Extrapolation is limited (i.e. clamped) via MaxExtrapolationTimeSimTicks. |