Hello, I have a problem calculating the Roll value needed for a parent component. I’ve been looking for a while here, on answerhub, trying to find a solutions without success.
Here is the two actors setup.
After attaching StaticMesh(Actor1) to Rot(Actor1) there is a Timeline adding a Pitch value to the Rot (arrow component) with AddLocalRotation. All is fine, StaticMesh(Actor 1) is rotating around the sphere(StaticMesh-actor 2).
At some point, the mesh of actor 1 need to “look at” the cube of actor 2 adding a Roll value (-/+ 180) to their parent, Rot (timeline is still adding a Pitch value). And here is the problem, I can’t find a proper way to get that value.
Here are two examples. (Arrow component, Rot, not visible)
I will appreciate if someone can point me in the right direction.
Thanks.