Kanda Players 0.7.0
Loading...
Searching...
No Matches
InteractablePredictionSwitchingClientSystem Struct Reference

This system queries for interactables and makes them predicted or interpolated based on their distance from the player. More...

+ Inheritance diagram for InteractablePredictionSwitchingClientSystem:

Public Member Functions

void OnCreate (ref SystemState state)
 
void OnUpdate (ref SystemState state)
 

Static Public Attributes

const int PrespawnedGhostTypeIndex = -1
 Pre-spawned ghosts cannot do prediction switching.
 
const float InterpolationMarginSq = 2f
 For a ghost to switch to interpolated, it must be outside of prediction distance + margin. This helps avoid jitter when interactables are sitting right at the border of the radius.
 

Detailed Description

This system queries for interactables and makes them predicted or interpolated based on their distance from the player.

The system runs in VariableRateSimulationSystemGroup as it does not need updating at full rate like other simulation systems.


The documentation for this struct was generated from the following file: