Ive just started with some basic lua scripting with spin blocks, and im just completely lost when it comes to their angles.

If i use the following code:

I:GetSubConstructInfo(MySpinBlockId).LocalRotation

i get some weird quaterilion object with seemingly very nonsensical x,y,z and w values in. I understand that this is to represent angles in a 3 dimensional space, but i just need to get a simple angle in degrees of where the spinblock is pointing, what is the easiest way to get this?

I am completely lost, would be grateful for any help.

If i use the following code:

I:GetSubConstructInfo(MySpinBlockId).LocalRotation

i get some weird quaterilion object with seemingly very nonsensical x,y,z and w values in. I understand that this is to represent angles in a 3 dimensional space, but i just need to get a simple angle in degrees of where the spinblock is pointing, what is the easiest way to get this?

I am completely lost, would be grateful for any help.