A math problem? Aligning grid rotation with rotation of parent actor.

Hello! :blush:

I am a little bit stuck on something. I need to snap Actor A to a grid, but the grid should be aligned with the rotation of Actor B. This should be at runtime. Any idea how I could achieve this?

Thanks already for your help! :grin: