Timeline reverse doesn't work after setting new actor transform

Hello Community, I’m somewhat new and I’ve trying to emulate an item pickup.

The principle is this.

The player presses the interact key (the actual case is much more tricky but isn’t necessary to expand on this to describe the problem) and an actor should move toward the camera by setting a new actor location and rotation and using an animation tween by timeline. This part works fine since the actor moves correctly toward the position I want.
But once trying to make the element back to its original position it simply won’t work. I’ve seen that debugging everything goes correctly and the reverse action is successfully called but the actor doesn’t go to its original transform.

I’m using flip-flop in order to debug the problem but I had a set of booleans that were triggered correctly before and didn’t work either.

I’m not sure I need to re-enter the transform coordinates since everything is set up in the first flow (A).

Please any help would be appreciated.

When you’re using a timeline, you have to pre-calculate the start and end points for locations and rotations, otherwise it won’t work.

You’re sampling object transforms during the timeline.

Thank you. After your help, I went back to the problem and I was able to solve it.
Much appreciated.

Naldo

1 Like