Rotation intervall

Hi!

I´m working on an excavator and whant to limit the rotation for the arm. How do I set up this?

Regards steel

294284-arm1.png

Simplest method would be to use a clamp node and set a min and max value.

You can try setting Physics Constraints in the blueprint and limit the angle but I’m not really sure if that will work correctly.

Or you can do it manually and just check the current angle after the Arm1 input and stop rotating when in exceeds certain angle.

But in this case you’d need to save rotation to a separate variable, then add the axis values to this Variable instead of to Arm 1 rotation, then clamp it, and then [Set Local Rotation] for Arm 1 instead of [Add Local Rotation].

Thanks!

Will try this.

I found a solution and thanks to your description and a code from a camera that i had. So i merged that to this. It works but I´m not sure if it´s the best solution.

Thanks for the support!