I am trying to rotate the the spring arm in my character blueprint on its Z axis around the character when I press D(right rotation) and A(left rotation). I also want it to slowly speed up when I press D or A, and speed down when I release. How can I achieve this?
Here’s an overcomplicated way to do it. There are simpler ways (using interp nodes), but I wanted to use a Timeline to control the acceleration/deceleration curve of the rotation.
1 - create 2 float variables: Direction and Accel
2 - uncheck the “use pawn control rotation” of the spring arm: