controlling controller pitch with mouse and the keyboard simultaneously

Hi all,

I’ve tried to achieve tilting the player to the front and back when he moves forward or backward. It worked, but the problem is the rotation is resting back to the center
as shown in the video

This is the logic I’m using.

Thank you for your help.

Hey there!
I don’t know what is happening inside the timeline, but whenever you release your Input you’re calling the same Timeline with the oposite values for Target Roll Front Back.

The timeline only has a float value from 0 to 1

basically, brute forcing control rotation with this logic,
a conflict between the mouse and keyboard since the mouse uses pitch
until the timeline runs, the code and mouse controls oppose each other

The right-left tilt work very well with this same logic, but of course, I’m using the X Roll for it, and the mouse is not using Roll; that’s why it worked.

So it had to be a way around to control the pitch