Need help with create an animation which can start from any position and return to a set position (not reverse the animation)

Godot Version

4.2.2

Question

It doesn’t matter how animation is played (tweens, animationtrees and everything is alright). Also it’s in 3d.

So you want to start an animation at a specific timestamp and end it at a specific timestamp?

Not exactly, I want to make an animation/function which can return an item into pre-set rotation from any rotation.
For example I have X rotation and I want to return it to 180 degrees no matter what are X’s degrees

So X rotation could be 50, 180, -11 or whatever degrees and it would still return to 180

It is possible with tween. Do you want to know how?

Wait nevermind, I have an idea

1 Like

Yea I don’t know why I thought it wouldn’t work. I just subtract the current position from target position with some additional math and stuff.
Sadly for some reason parallel tweens are not working for me, can somebody help me out quickly :smiley:

Figured it out myself.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.