Find Look at Rotation is not working properly.

I want to find the angle between the two Actor positions, but even though they are moving together, the angle changes.

Start is Cube and Target is Camera.
How do I get the relative angles of the Cube and Camera regardless of which direction they are facing?

PS: I forgot to attach the code.

Can you post your code/nodes?

looks like its returning the world rotation which is correct, if you want relative just delta the actor rotation?

2 Likes

one other thing you may be interested to look at is dot product.

this can tell you if one thing is looking at another and amount of deviation. I think it is possible to convert the dot product value, which will be 0-1, to an angle if you needed that, using ACos.

1 Like

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