0 corresponds to the module completely bent while 100 corresponds to the module completely straight.
What ports can I use it on?
1,2,7,8
Code
var amountOfBend = Magic.modules.flex.bend;
using Magic;
public class Demo : MonoBehaviour
{
// create a reference to the module
public Magic.Modules.FlexModule flex;
void Start()
{
}
void Update()
{
// access the property of the module
int amountOfBend = flex.bend;
}
}