Subtract Two Floats Over Time(Smoothly)?
Hello, I have a very simple BP which triggers an event every 2 seconds. And that event gets the collision capsule rotation (yaw value) and substracts the control rotation(yaw value) from it.
This results in an instant snap of capsule to rotation wanted. How can I make it so that capsule rotation rotates smoothly to the yaw value wanted? I tried using timeline, lerp and Rinterp to nodes but they didn't quite work or I did something wrong.
Thank you for any suggestions/responses.
P.S. use pawn control rotation is checked off so mouse inputs shouldn't be an interuptor in this case
asked Sep 15 '17 at 02:13 AM in Blueprint Scripting
The Problem is that you trigger only every 2 seconds. Instead of Rotating there do your rotation on Tick. In your Timer you can simply set a Float variable to hold the Yaw rotation you want and use that Variable in your tick. You can use interpolation for this.
Good Luck and have Fun =)
answered Sep 15 '17 at 02:21 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here