Changing the pivot of an object OR Rotate Actor relatively to a point


Good day,
I would like to know if there’s a way to change the pivot of an actor in blueprint OR a way to rotate an actor relatively to a point i set
Im working on a pool/billard game in VR and when i lock my position and want to rotate the cue it rotates relatively to the original pivot which is at the base of the cue stick
I need your opinion in this.
This is my function for rotating the cue

I am rotating the actor relatively to the current left hand location

Maybe try spawning an invisible actor in the pivot point, parent the cue to it, and rotate this actor.

4 Likes

this?

4 Likes

hint: when you have a hierarchy of components you can always detach/re attach em…for example you can have the pivot attached to the pole (pivot as child of the pole) and then just do a detach of the pivot (keep world) and then attach the pole to the pivot…that way you just reverse orders. at the beginning the pivot follows the pole and then the pole follows the pivot. once you are ready to aim just do a look at of that pivot point to you back hand VR controller to aim. distance between the pivot and your controller can be how much are you sliding the pole in the line (offset one axis of the pole attached to the pivot)

3 Likes

I’ll try that method thank you very much

2 Likes