How can I rotate an object over time when pressing a key?
I want to rotate an object over time when a player presses a key.
I attached the blueprint i have at this moment and think i'm almost there, i only need some help on the "RInterp To" i think. Thanks for your answers!
Thanks for your suggestion Shadowriver
Although your suggestion was a bit cryptic i managed to find out a way to get it working! For everyone else i added my working solution, and maybe can help other people out looking for a similar solution.
answered Apr 26 '14 at 05:57 PM
Set Actor Rotation will rotate object momentarily on trigger (in this case key press only once per pressed). You need to use Tick so it will trigger node on every frame and move object towards the target,also apply delta time so it it will sync with time. You need to keep target rotation in variable and set on key press and replace current key press with tick also you can block tick when rotation reach the target.
answered Apr 26 '14 at 03:41 PM
Why complicate it? Define your key as an axis input and use it with an Add COntroller Yaw Input node. That is what it's designed for.
answered Mar 25 '15 at 12:23 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here