So I’m working on a 3d prototype using blueprints and I’m trying to achieve the next: I’m trying to get the camera’s position to the right of the player all the time, no matter where he moves. To do this I have a public variable to get the player reference, get the actor’s rotation and get the right vector to add it to the character’s position and set the result as the camera’s new position (image attached)
The problem is, with this logic the camera starts good, at the right of the player but when I move around the camera follows the player but stays on the same side.
As you can see in the image, I’m printing the vector right and it is always the same, X=1, Y=0, Z=0.
I have used the get vector right node before and I know that this is not right, I know that when the actor’s rotation changes so it does the right vector (for example when I set up the input controller I became aware of this)
So why do you think it is not working?
do you think it is because I’m using a public variable to reference the character?
By the way, I’m using Unreal 4.24.3
Thanks in advance!