How to point this compass to north?

Hey Guys,

I made this compass and i want to use it in game, but I can’t figure out how to point the pointer to north (X axes).
It’s most likely a very easy solution, but that solution is very welcome :).

I have a Blueprint Class which has all the components, and i need to rotate the pointer on the Yaw.

Since I’m here can someone tell me how to get the ring on the top of the compass to react to physics.

Thanks for your time :slight_smile:

I think you have to solve a two planes intersection problem ( the compass is the first plane, and the Axis the other one) the intersecting line gives you the absolute rotation of the pointer.

https://www.youtube.com/watch?v=o7CfCDkRwfY

Think a few about it, if you need more help I will try to sholve it in UE.

Good luck.

  1. Get Actor Rotation and use the “Y” value and plug it directly into your pointer rotation.