|
@@ -5,6 +5,8 @@ using UnityEngine;
|
|
|
|
|
|
public class CalibrationMarkerBehavior : MonoBehaviour
|
|
public class CalibrationMarkerBehavior : MonoBehaviour
|
|
{
|
|
{
|
|
|
|
+ public float speed = 0.05f;
|
|
|
|
+
|
|
Vector3[] frustumCorners;
|
|
Vector3[] frustumCorners;
|
|
List<Vector3> targetPositions;
|
|
List<Vector3> targetPositions;
|
|
PersonManager PersonManager => personManagerLazy.Value;
|
|
PersonManager PersonManager => personManagerLazy.Value;
|
|
@@ -65,9 +67,6 @@ public class CalibrationMarkerBehavior : MonoBehaviour
|
|
{
|
|
{
|
|
var marker = GameObject.Find("CalibrationMarker");
|
|
var marker = GameObject.Find("CalibrationMarker");
|
|
|
|
|
|
-
|
|
|
|
- const float speed = 0.5f;
|
|
|
|
-
|
|
|
|
if (Vector3.Distance(marker.transform.position, currentTarget) >= 0.05f)
|
|
if (Vector3.Distance(marker.transform.position, currentTarget) >= 0.05f)
|
|
{
|
|
{
|
|
marker.transform.position += Vector3.ClampMagnitude(speed * Time.deltaTime * normalizedTranslationVector, (currentTarget - marker.transform.position).magnitude);
|
|
marker.transform.position += Vector3.ClampMagnitude(speed * Time.deltaTime * normalizedTranslationVector, (currentTarget - marker.transform.position).magnitude);
|
|
@@ -80,6 +79,7 @@ public class CalibrationMarkerBehavior : MonoBehaviour
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
|
|
+ enabled = false;
|
|
PathFinished?.Invoke(this, EventArgs.Empty);
|
|
PathFinished?.Invoke(this, EventArgs.Empty);
|
|
}
|
|
}
|
|
|
|
|