title: Unity Pushing Object Script (Little Big Planet like)
body: <p>I want to pull an object with the same force that the player pushes that object's rigidbody. However, I don't know how to make such a force equal to the force of walking into the rigidbody. </p>
  
  <p>Here's my code: </p>
  
  <pre><code> //if can push and holds button for pushing
  other.GetComponent&lt;Rigidbody&gt;().AddForce(new Vector3(player.moveInput.x*player.speed*mass, player.moveInput.y * player.speed * mass, player.moveInput.z * player.speed * mass), ForceMode.Impulse);
  </code></pre>
  
  <p>Right now the above code just makes the box fly with a force that is much greater than I expected.</p>