您的位置:首页 > 其它

自转 note

2019-04-15 09:48 106 查看

always自转

transform.Rotate(new Vector3(0, 0, 1),Space.World);
transform.Rotate(new Vector3(0, 0, 0.2f);

自转

Quaternion rotationC = objectC.localRotation;
Vector3 rotC = rotationC.eulerAngles;

rotC.z = -heading;

???

gameObject.transform.Rotate(new Vector3(0,1,0),Input.GetAxis("Horizontal");
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: