RollbackManager (Pro Feature)

RollbackManager contains configurations and optimizations for how colliders are sent back in time when using lag compensation.

Description

The RollbackManager must be added and configured properly for lag compensation to function properly. Objects you wish to rollback must contain the ColliderRollback script on them. You can learn more about using it on this page: Lag Compensation

Settings

Default Settings

⚙️ Bounding Box Layer

This is the layer to first test against before rolling back colliders. When a layer is specified a collider will be added to your ColliderRollback objects; because of this, be sure to use a layer which has no physics intersections and is not used for anything else.

⚙️ Maximum Rollback Time

This is the maximum of seconds colliders may rollback. Using a value of 1f would allow colliders to rollback at most one second in the past, which is a very reasonable amount of time given typical player latencies are less than 100ms.

⚙️ Interpolation

This is the amount of interpolation you are using on your NetworkTransform components. Or if you are using rigidbodies with prediction this would be the interpolation value on the smoothing component.

Last updated