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.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback