Why my door won't open by these lines of code?

One problem that I am having trouble to figure out. These are the lines I wrote:


They don’t open any doors.

These are the lines after:


And they work perfectly.

Question:
What’s the issue with my code before? The only differnce I see is, in the new one, I give the shifting value to current Z rotation and assign it to current XYZ roation, which seems redundent to me, but somehow essential.

The first version never changes CurrentYaw so you’re getting the same result from FInterpConstantTo each time.

The second version modifies CurrentYaw, on the next call it will be using a different value which result in FInterpConstantTo a different result.

Thanks mate. After staring at it for 15mins, I think I know what you meant by the current yaw never changes.

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

Privacy & Terms