Method PreparePredictedData
PreparePredictedData(NetworkTick, float, bool)
This method is called as part of the prediction loop if this behaviour is registered with a GhostAnimationController. This function is where all computation of animation data should happen, unless you use a system to compute the animation data instead.
Declaration
public abstract void PreparePredictedData(NetworkTick serverTick, float deltaTime, bool isRollback)
Parameters
Type | Name | Description |
---|---|---|
NetworkTick | serverTick | Server tick. |
float | deltaTime | You only need to set the time if |
bool | isRollback | Is rollback. |