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

为什么我的在 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下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号