A full rotation is divided into 24 segments. This means if you rotate the shaft clockwise halfway, you will have a rotation value of 12 and -12 if you rotate counterclockwise.
What ports can I use it on?
1,2,7,8
Code
var amountOfRotation =Magic.modules.spin.rotation;
usingMagic;publicclassDemo:MonoBehaviour{ // create a reference to the modulepublicMagic.Modules.SpinModule spin;voidStart() { }voidUpdate() { // access the property of the moduleint amountOfRotation =spin.rotation;Magic.Modules.SpinModule.SpinDirection direction =spin.direction; }}