📜  c sharp 如何分配刚体 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:10.304000             🧑  作者: Mango

代码示例2
GameObject myGameObject = new GameObject("Test Object"); // Make a new GO.
Rigidbody gameObjectsRigidBody = myGameObject.AddComponent(); // Add the rigidbody.
gameObjectsRigidBody.mass = 5; // Set the GO's mass to 5 via the Rigidbody.