UxrControllerInput.Input2DToAngle Method

Transforms a two-axis input to an angle. 0 degrees is right and degrees increase counterclockwise.

Namespace: UltimateXR.Devices
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

protected static float Input2DToAngle(
	Vector2 input2D
)

Parameters

 

input2D
Type: Vector2
2-axis input

Return Value

Type: Single
Angle in degrees

See Also

Reference

UxrControllerInput Class
UltimateXR.Devices Namespace