Rigidbody rigidbody = transform.GetComponent<Rigidbody>(); rigidbody.velocity = Vector3.zero; rigidbody.constraints = RigidbodyConstraints.FreezeAll; rigidbody.constraints = RigidbodyConstraints.None;
时间: 2024-10-13 15:57:51
Rigidbody rigidbody = transform.GetComponent<Rigidbody>(); rigidbody.velocity = Vector3.zero; rigidbody.constraints = RigidbodyConstraints.FreezeAll; rigidbody.constraints = RigidbodyConstraints.None;