LagCompensator: rename collider field to be more obvious in Inspector

This commit is contained in:
mischa 2024-02-25 12:49:28 +01:00
parent b58e929da1
commit 6b21de516d

View File

@ -38,7 +38,7 @@ public class LagCompensator : NetworkBehaviour
{
[Header("Components")]
[Tooltip("The collider to keep a history of.")]
public Collider col; // assign this in inspector
public Collider trackedCollider; // assign this in inspector
[Header("Settings")]
public LagCompensationSettings lagCompensationSettings = new LagCompensationSettings();
@ -69,8 +69,8 @@ protected virtual void Capture()
// capture current state
Capture3D capture = new Capture3D(
NetworkTime.localTime,
col.bounds.center,
col.bounds.size
trackedCollider.bounds.center,
trackedCollider.bounds.size
);
// insert into history