How to limit the value of add local offset
I am making a crane that can be extended/retracted, but I want to limit how much it can be extended/retracted, so the tubes wont fall out of it's parent tube, please let me know how to do so.
I have attached my blueprint on how to control the extension of the tubes, its a stupid method that I came up with, feel free to correct me if there are simpler and better way to do that as well, thanks a lot.
asked Dec 11 '18 at 04:14 AM in Blueprint Scripting
Edit: I've posted this before my first comment, but it went through moderation queue and appeared only now, so sorry for double. But I think I can leave this as an answer too.
The best solution depends on the rest of your system, but the first thing you can try is to use the Clamp node before the Delta Location Z inputs:
This way you can limit your offset for both negative and positive values, using the Min/Max inputs.
Follow this question
Once you sign in you will be able to subscribe for any updates here