the following problem:
i want to restrain the player camera onto a certain mesh when a(left) mousebutton is pressen.
so far i worked my way around it like this:
i make a linetrace and ignore all other actors except the mesh i want to restrain it to. The location of the linetrace is used to update the location of another blueprint, a target.
everytime the linetrace is not hitting and the mousebutton is pressed i get the player actor location and the target actor location and set a “find look at rotation” node to set the controlrotation of the camera.
it works but its a bummer, it shakes, is not really stable and in vr mode instead of restraining it restrains the mesh to the view of the headset.
any idea what im doing wrong?