Method TryGetThresholdTargetRotation
TryGetThresholdTargetRotation(out Quaternion)
Determines if the new target rotation is within a dynamically determined threshold based on the time since the last update, and outputs the new target rotation if it meets the threshold.
Declaration
protected virtual bool TryGetThresholdTargetRotation(out Quaternion newTarget)
Parameters
| Type | Name | Description |
|---|---|---|
| Quaternion | newTarget | The output new target rotation as a Quaternion, if within the allowed threshold. |
Returns
| Type | Description |
|---|---|
| bool | Returns true if the angle difference between the current and new target rotations is within the allowed threshold, false otherwise. |