Vixen
02b45cc4
csharp
public readonly record struct PredictionCorrection

How far one object moved when a prediction was corrected.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

The simulation has already taken the correction — this is what happened, not a proposal. What a presentation layer does with it is give the difference to the camera as an offset that decays, so what the player sees glides while what the server will judge is already right.

Fields and properties (3)

  • public NetworkId Id

    Which object.

  • public Vector3 From

    Where it was being drawn.

  • public Vector3 To

    Where the corrected simulation says it is.

Methods (1)

  • public PredictionCorrection(NetworkId Id, Vector3 From, Vector3 To)

    How far one object moved when a prediction was corrected.

Used by (4)

  • ClientPredictionVixen.Net
  • PredictionSmootherVixen.Net
  • PredictionSmoothingSystemVixen.Net.Engine
  • PredictionSmoothingTestsVixen.Net.Engine.Tests