After updating to Unity 6 I get the message iskinematic is obsolete by a Rigidbody2D. What for a code should I use instead of this to disable the Ridigbody2D?
m_rb.isKinematic = true;
After updating to Unity 6 I get the message iskinematic is obsolete by a Rigidbody2D. What for a code should I use instead of this to disable the Ridigbody2D?
m_rb.isKinematic = true;
I’m guessing perhaps body type? What is your reading of the docs? That’s my best guess…
Thanks.
I replaced the line with this:
m_rb.bodyType = RigidbodyType2D.Kinematic;