Method IsAboveDivergenceThreshold
IsAboveDivergenceThreshold(IUsesDetectGazeDivergence, Transform, float, bool)
Check if gaze direction is above the divergence threshold
Declaration
public static bool IsAboveDivergenceThreshold(this IUsesDetectGazeDivergence user, Transform transformToTest, float divergenceThreshold, bool disregardTemporalStability = true)
Parameters
| Type | Name | Description |
|---|---|---|
| IUsesDetectGazeDivergence | user | |
| Transform | transformToTest | The transform representing gaze direction |
| float | divergenceThreshold | The threshold angle value to test |
| bool | disregardTemporalStability | Whether to disregard temporal stability |
Returns
| Type | Description |
|---|---|
| bool | True if the angle between the gaze and target is above the divergence threshold |