Enum SmoothingAction
Denotes how GhostFieldAttribute values are deserialized when received from snapshots.
Namespace: Unity.NetCode
Syntax
public enum SmoothingAction
Fields
Name | Description | Value |
---|---|---|
Clamp | The GhostField value will clamp to the latest snapshot value as it's available. |
|
Interpolate | Interpolate the GhostField value between the two snapshot values, and if no data is available for the next tick, clamp at the latest snapshot value. |
|
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. |