程序这边的接口:
mRigidbody.constraints = RigidbodyConstraints.FreezePositionX | RigidbodyConstraints.FreezePositionY;
经过测试,冻结轴向是世界轴向
程序这边的接口:
mRigidbody.constraints = RigidbodyConstraints.FreezePositionX | RigidbodyConstraints.FreezePositionY;
经过测试,冻结轴向是世界轴向