cocos creator node 角度设置
·
cocos creator node 可以通过以下方式设置角度:
- 使用 node.angle 属性
- 使用 node.setRotation() 方法
- 使用 node.rotation 属性(以弧度制表示)
例如:
node.angle= 30;
node.setRotation(45);
node.rotation = Math.PI / 2;
其中 angle 属性和 setRotation() 方法都以角度制表示角度,而 rotation 属性则以弧度制表示角度。
更多推荐
所有评论(0)