unity rigidbody copy position code example
Example 1: rigidbody2d unfreeze position
public Rigidbody2D rb;
void Start()
{
rb.constraints = RigidbodyConstraints2D.None;
}
Example 2: unity move with rigidbody.moveposition
rb2D.MovePosition(rb2D.position + velocity * Time.fixedDeltaTime);