Angle To

Calculates the angle needed for a rightward-facing object placed at the observer position to turn so it points toward the target position.

Interface

Inputs

ParameterDetailsPossible Types
Observer

The position from which the angle is measured.

Primary Input

transform
vec2
Target

The position toward which the angle is measured.

Exposed to the Graph by Default

transform
vec2
Radians

Whether the resulting angle should be given in radians instead of degrees.

Default: false

bool

Outputs

ProductDetailsPossible Types
Result

The value produced by the node operation.

Primary Output

f64