title: How to add a component using a preexisting component?
body: <p>What I want to do is, instead of using <code>Rigidbody foo = gameObject.AddComponent&lt;Rigidbody&gt;()</code> and then manually changing each parameter of the Rigidbody to what I want it to be like, this way: <br /><code>foo.isKinematic = false</code> ... <code>foo.mass = 4.544f</code> ... etc.</p>
  <p>I want to be able to add a <strong>WHOLE</strong> Rigidbody to it, if that makes sense.
  Something like this: <br /></p>
  <pre><code>Rigidbody foo = anotherGameObject.GetComponent&lt;Rigidbody&gt;();
  this.gameObject.GetComponent&lt;Rigidbody&gt;() = foo; //Or AddComponent&lt;Rigidbody&gt;() :/ neither work
  </code></pre>
  <p>But this just gives me an error: <br />
  <code>jointsHandler.cs(48,17): error CS0131: The left-hand side of an assignment must be a variable, property or indexer</code></p>