mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
LagCompensator: rename collider field to be more obvious in Inspector
This commit is contained in:
parent
b58e929da1
commit
6b21de516d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user