Skip to main content

Class SafeBoundaryMetricCalculator

Calculates a "safe boundary" metric during a monitored interaction period managed by the FeedbackMetricCoordinator. The the metric is calculated based on how quickly the player is moving at their closest proximity to any tracked actor. Higher values indicate riskier behavior, combining high speed with minimal spacing (speed / distance).

[RequireComponent(typeof(FeedbackMetricCoordinator))]
public class SafeBoundaryMetricCalculator : MonoBehaviour, IFeedbackMetricCalculator

Inheritance​

Implements​

IFeedbackMetricCalculator

Properties​

Metric​

Gets the current calculated metric based on the player's speed at the moment they were closest to any actor being monitored.

public float Metric { get; }

Property Value​

float

Player​

Attempts to locate and return the player's transform from the player selector service.

public Transform Player { get; }

Property Value​

Transform