不能站在这里发生的事情
以下是一种更新方法,有人会尝试解释一下吗
void Update()
{
transform.Rotate((transform.rotation.eulerAngles.x+10)* Time.deltaTime , 0, 0);
}
The below is an update method, would someone take a try explaining it
void Update()
{
transform.Rotate((transform.rotation.eulerAngles.x+10)* Time.deltaTime , 0, 0);
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
更新
-Method称为每个帧。在您的情况下,方法以异常的方式旋转游戏对象的变换。您应该操纵 eulerangles 或docs.unity3d.com/scriptreference/transform.rotate.html“ rel =“ nofollow noreferrer”>旋转给定值的变换。the
Update
-Method is called every frame. In your case the method rotates the transform of the gameobject in an unusual way. You should either manipulate the eulerAngles or Rotate the transform by a given value.