PredictionPacket Fields
The PredictionPacket type exposes the following members.
Fields
Name | Description | |
---|---|---|
deltaTime |
The time in seconds since the last update. This is used to calculate
the new predicted position based on the last known velocity and direction.
|
|
latency |
The latency of the client in seconds. This is used to adjust predictions
to account for network delay.
|
|
position |
The predicted position of the entity in a 3D space.
|