PCG How to interpolate two points rotations?

Hi there!
I hope someone is reading those from time to time.

I am trying to figure out how to interpolate rotation of two points. I tried everything that came to my mind with no results, mostly errors. I already spent half a day trying to figure it out.

To describe my case in more details, I have been trying to spawn a tree, on a gentle slope, and make this tree to inherit a little bit of that’s slope angle. I think Lerp between “resting” rotation and slope-aligned rotation would do the trick.

I have point A, I have point B. I tried to plug them into Maths/Rotator/Transform: Lerp and use Create Attribute with Float 0.5 as Ratio.

Maths: lerp outputs just Point A, no changes, no errors. It does nothing.
Rotator: Lerp would not work at all and give me just an Error which makes little to no sens. It does not accept any inputs.
Transform: Lerp does not accept any inputs and gives me just undescriptive errors.

I have no clue what is going on. It should be rather easy operation, right?

Can you show that piece of code?

Late reply but I saw this while seaching for the same solution.

The regular “Lerp” node does not accept Quaterinions, BUT there is “Transform Rotation” node, in it you can change the Operation to “Lerp” and that works just fine.