Rotate Object object to match player

Hey

In a nutshell, i have a physics handle i use to grab and drop physical objects in my scene, id like these objects, once grabbed to keep their rotation in relation to the player

I.e lets say theres a cube with various colored faces in the scene, if i pick the cube from its blue face, then as i move it arround id like for this face to keep its rotation in match with the player so no matter which direction i move the cube the blue face will always be facing the player

Here is another example of what im trying to achieve ( i alredy have the dragging part down , my main issue is with the rotation )

Right now if i start moving my mouse arround once i have grabbed the object it will keep rotating, rather than face the player

find the angle between the forward actor of your picked up object and our player pawn. you can use findLookAtRotation for that. then use that on tick to set (or better lerp) the rotation so objectForwardVector is 180° to pawnForwardVector. or, ad an arrow component to your pawn, pointing back, and use that rotation for the actor if it is always straight in front of you :wink:

1 Like

Thanks!, ends up i actually had sorted out the rotation however, i forgot to also use the Set Target Rotation node in my physics handle which was causing all sorts of issues