Using Independent Curves for Open and Close

Hey all,

I am a seasoned C++ developer but a newbie Unreal user. On my door implementation, I want to use independent curves for opening and closing the door. My strategy was to implement a second timeline triggered by the close event and send that output to the yaw input of the rotator. I believe that would do it, but I ran into a problem in my thinking.

Since these timelines are independent, the close needs to be able to start at whatever time matches the current open angle, which the more I think about it the more complex it seems to pull off. Timelines allow a start time input, but since the curves are independent the angle output by one timeline at a given time does not necessarily match the angle at the same time in the other.

In my head, the solution to the problem would be something like this:

  1. When one of the timelines is triggered, keep track of the output angle.
  2. When the opposing timeline is triggered, find the time at which that angle is met in its curve.
  3. Start the timeline from the time found in step 2.

Easy to say, but I cannot for the life of me find a way to do step 2. Is there a way to do it?

Have the timelines be from 0 to 1 and use it as a percentage for the angle. So you would have an InitialYaw, TargetYaw, and Percent.
You then you can use the Timeline Length node to get the play time you need New Time to be set using Percent.

Privacy & Terms