[英]How to change the angle of the the axis in the unity?
I don't know if I understood your question.我不知道我是否理解你的问题。 If you just need to rotate the cube: you can use
Rotate(float xAngle, float yAngle, float zAngle, Space relativeTo = Space.Self);
如果你只需要旋转立方体:你可以使用
Rotate(float xAngle, float yAngle, float zAngle, Space relativeTo = Space.Self);
so for example cube1.transform.Rotate(0.0f, 0.0f, 27.0f, Space.Self);
例如
cube1.transform.Rotate(0.0f, 0.0f, 27.0f, Space.Self);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.