为了账号安全,请及时绑定邮箱和手机立即绑定

为什么我的在 GetComponent<Rigidbody>()时报错了?There is no 'Rigidbody' attached to the "Player" game object

MissingComponentException: There is no 'Rigidbody' attached to the "Player"

正在回答

3 回答

给物体添加组件,rigidbody是一个physics下的组件

0 回复 有任何疑惑可以回复我~

我还是不知道怎么弄,越看越懵,跳了太多步骤。

0 回复 有任何疑惑可以回复我~

可以照着老师的改一下用代码控制运动,或者给player加一个compoment为rigidbody

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

为什么我的在 GetComponent<Rigidbody>()时报错了?There is no 'Rigidbody' attached to the "Player" game object

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信