That's it, i can't see the option in the inspector. I saw it in the old Unity4 but i can't do it now in unity 5. Also, it is in the 5.10 version. Please help me, i'm newbie haha.
In Unity 5.1, the fixed angle effect is done via Rigidbody2D.constraints.
GetComponent<Rigidbody2D>().constraints = RigidbodyConstraints2D.FreezeRotation;
See also RigidbodyConstraints2D.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With