unity3d添加质量

unity3d添加刚体、质量

this.gameObject.AddComponent<Rigidbody>();
this.gameObject.GetComponent<Rigidbody>().mass = 10.01f;

 

 

 

 

#################

posted @ 2022-09-26 14:57  西北逍遥  阅读(34)  评论(0编辑  收藏  举报