Map motion controller rotation onto object for laser pointer type manipulation (rotator math)

02

Hi, everyone. I’m trying to rotate an object using motion controller rotation. It works from one direction, but if I move to the side or the back of the object, it doesn’t rotate as expected.

I have bumped into this math problem a few times where I need to ‘rotate a rotator’, like you can rotate a vector. I have seen other people asking about this over the years, but haven’t found a solution.

There are a few possible workarounds like attaching the object to the laser or giving the object a parent object that aligns to the controller on grab. But if possible, I would like to find a solution using rotator math.

Many thanks.

Did you find a solution for that?