Method GetCollisionWorldFromTick
GetCollisionWorldFromTick(NetworkTick, uint, ref PhysicsWorld, out CollisionWorld)
Get the CollisionWorld state for the given tick and interpolation delay.
Declaration
public void GetCollisionWorldFromTick(NetworkTick tick, uint interpolationDelay, ref PhysicsWorld physicsWorld, out CollisionWorld collWorld)
Parameters
Type | Name | Description |
---|---|---|
NetworkTick | tick | The server tick we are simulating. |
uint | interpolationDelay | The client interpolation delay, measured in ticks. This is used to look back in time and retrieve the state of the collision world at tick - interpolationDelay. The interpolation delay is internally clamped to the current collision history size (the number of saved history state). |
PhysicsWorld | physicsWorld | The physics world which is use to get collision worlds for ticks which are not yet in the history buffer. |
CollisionWorld | collWorld | The CollisionWorld state retrieved from the history. |