Community Forum

How do i get x rotation from steerable?

Forum Overview >> Scripting

Created30.01.2021 12:16

Juho Nikula (juhe5) 30.01.2021 12:16
How do i get local x rotation from steerable? I want value from 0 to 360.

Bilbo Beutlin (BBeutlin) 30.01.2021 23:27
You can always use the function
local rx, ry, rz = getRotation(node)

Notice that rotations in FS LUA are almost all in radians. For converting to degrees use math.deg() or usual *180/Pi.

Andrej Mazak (eLvisSK) 14.03.2021 23:28
hi, sorry for silly question but what is node if i want a rotation of tractor ocupied by me?

Note: Log in to post. Create a new account here.