Struct PhysicsWorldHistorySingleton
A singleton component from which you can get a physics collision world for a previous tick.
Inherited Members
Namespace: Unity.NetCode
Syntax
public struct PhysicsWorldHistorySingleton : IComponentData, IQueryTypeParameter
Methods
GetCollisionWorldFromTick(NetworkTick, UInt32, ref PhysicsWorld, out CollisionWorld)
Get the
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. |
UInt32 | 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 |