I am spawning actors (bp with mesh + light) along a Landscape spline using PCG.
So far so good, but i need to orient them to have them with a 0 Rotation along Z axis, but to keep the rotation on X and Y (because the meshes needs to be ortogonal to the landscape spline).
I’ve tried to use copy attributes to copy $Rotation.X and $Rotation.Y to temp variable and then, then RotZ to using absolute, then pasting back temp var to $Rotation.X and $Rotation.Y but this makes Unreal Engine instable and it crashes often when moving rescaling / translating the PCG volume.
Yeah, so I’m in 5.3 and having the exact same problem, like i said. Unreal crashes instantly when i hit debug on anything following the Rotation tampering. I used Noise, with Set to 0, but alas, crashes.
I think there might be a way to do this using rotators in PCG, but i don’t know how to and resources are, of course, scarce on how to do that