Hello,
First of all, thank you for the excellent preparation of the file, with nicely internalized planes and without tons of external plugins.
Fortunately the error was easy to spot, at the very beginning you decompose the planes to calculate the angle for the rotation. In your file, you calculate the angle between the Z-axis of the target plane and the global X-axis. Because the Z-axis changes in tilt, you get the change in orientation.
Using the Y-axis instead makes it consistent, in my testing.
Best,
Johannes
First of all, thank you for the excellent preparation of the file, with nicely internalized planes and without tons of external plugins.
Fortunately the error was easy to spot, at the very beginning you decompose the planes to calculate the angle for the rotation. In your file, you calculate the angle between the Z-axis of the target plane and the global X-axis. Because the Z-axis changes in tilt, you get the change in orientation.
Using the Y-axis instead makes it consistent, in my testing.
Best,
Johannes