#Rigidbody

Unity让带有Rigidbody组件的游戏对象停止运动

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