Rigidbody rigidbody = transform.GetComponent<Rigidbody>(); rigidbody.velocity = Vector3.zero; rigidbody.constraints = RigidbodyConstraints.FreezeAll; rigidbody.constraints = RigidbodyConstraints.None;
Rigidbody rigidbody = transform.GetComponent<Rigidbody>(); rigidbody.velocity = Vector3.zero; rigidbody.constraints = RigidbodyConstraints.FreezeAll; rigidbody.constraints = RigidbodyConstraints.None;