Not a member yet? Why not Sign up today
Create an account  

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 
Help with spin block angles

#1
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.
Reply



Messages In This Thread
Help with spin block angles - by thiextar - 2018-10-22, 07:02 PM
RE: Help with spin block angles - by evilebob - 2018-10-23, 04:28 PM
RE: Help with spin block angles - by Zijkhal - 2018-10-25, 09:26 AM
RE: Help with spin block angles - by Madwand - 2018-10-30, 07:11 AM
RE: Help with spin block angles - by thiextar - 2018-11-01, 07:53 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)