I have a gameobject with a rigidbody attached to it. I would like to make it so will collide with other gameobjects when I move it with the mouse. Is there a SimpleMove function for rigidbodies similar to CharacterController.SimpleMove?
Vector3 pos = Input.mousePosition;
pos.z = transform.position.z - Camera.main.transform.position.z;
transform.position = Camera.main.ScreenToWorldPoint(pos);