Hi there guys, I’ve been having some problems with rotation and quaternions as its hurting my head a bit.
So I have a problem regarding rotation:
I have an object where I can grab it wherever a line trace hits (GrabLocation). The object follows the players movements perfectly with a little delay. But whenever I start to rotate the camera the following happens:
2024-11-06 14-32-06.mkv (8.7 MB)
2024-11-06 14-32-29.mkv (3.0 MB)
As you can see, the object rotates around the GrabLocation, but the alpha between CamForward and RGrabLoc (R = relative) changes and I basically don’t want that to happen. I would like to have the Object rotate along the GrabLocation as not to change the alpha between CamForward and RGrabLoc vectors. As in I want the Object to rotate with the player.
I’ve already tried parenting or attaching the Object with AttachToComponent() and AttachToActor() to the player with no results.
Any idea how to do it right?
Edit: I’ve updated the image