title: Setting Rigidbody2D body type to "static" in code?
body: <p>I recently updated my Unity (to 5.5.0f3 from 5.4.1f1), and now I seem to have some problems with a Rigidbody2D in one of my games.</p>
  
  <p>So basically I used to use this code to make my gameobject (player) non-intractable and taken out of the physics controls:</p>
  
  <pre><code>Player.GetComponent&lt;Rigidbody2D&gt;().isKinematic = true;
  </code></pre>
  
  <p>This is not working properly after the update of Unity, and upon setting the player to kinematic it keeps moving in the same direction as when it was "dynamic" (but uncontrollable). Note: this was not the case in Unity 5.4.1f1.</p>
  
  <p>So I went into the Rigidbody2D component and noticed that it had changed. 
  <a href="https://i.stack.imgur.com/IEwS9.png" rel="nofollow noreferrer">How my old Rigidbody2D looked like</a> and <a href="https://i.stack.imgur.com/DPQMR.png" rel="nofollow noreferrer">How my new RigidBody2D looks like now</a></p>
  
  <p>The "kinematic" option was moved into a "body type" option, and in runtime it does change the body type to Kinematic using the ".isKinematic = true" string (but it's not working properly as mentioned before).</p>
  
  <p>So I tried changing the body type value to "static" manually doing runetime and noticed that worked perfectly!</p>
  
  <p><strong>So my question is:</strong> How do i change the body type to static in the code? (like the "isKinematic"), and what happened in the changes to Rigidbody2D (and Kinematics?)</p>