Clamp Angle

Clamp Angle

Windows
MacOS
Linux

Clamps an arbitrary angle to be between the given angles. Will clamp to nearest boundary.

Target is Kismet Math Library

Clamp Angle
Angle Degrees
0.0
Min Angle Degrees
0.0
Max Angle Degrees
0.0
Return Value
0.0

Inputs

Angle Degrees
Float
Min Angle Degrees
Float

"from" angle that defines the beginning of the range of valid angles (sweeping clockwise)

Max Angle Degrees
Float

"to" angle that defines the end of the range of valid angles

Outputs

Return Value
Float

Returns clamped angle in the range -180..180.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss