Radian-Degree Converter

Overview

Radian-Degree Converter takes a single Float value, representing an angle, in degrees (°) or radians (rad), and converts it from one unit to the other.

The equation used by the Node is determined by the Mode Attribute. The equations are:

  • Radian_to_Degree: D = R x 180/π.

  • Degree_to_Radian: R = D x π/180,

where R is an angle in radians (rad) and D is an angle in degrees (°).

Scope: Project, Scene, Function, Prefab.

Attributes

AttributeTypeDescription

Mode

Drop-down

Determines which conversion equation is used.

Default Value

Float

The default value of Input, if no value is provided in the Input Socket.

Inputs

InputTypeDescription

Pulse Input (►)

Pulse

A standard input Pulse, to trigger the execution of the Node.

Input

Float

The angle to convert.

Outputs

OutputTypeDescription

Pulse Output (►)

Pulse

A standard output Pulse, to move onto the next Node along the Logic Branch, once this Node has finished its execution.

Output

Float

The converted value.

See Also

Last updated