-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It will be easier for just set one axis value. For example, while using Tween animation, we want to make a sprite jump up and down forever and move x to 100, it will be hard to do that if Node.x/y/z are absent.
- Loading branch information
Showing
2 changed files
with
176 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9b4dfdb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/**x轴缩放 */
scaleX: number,
/**y轴缩放 */
scaleY: number,
/**z轴缩放 */
scaleZ: number,
/**x轴旋转 */
angleX: number,
/**y轴旋转 */
angleY: number,
/**z轴旋转, 等同于angle */
angleZ: number,
这些属性应该同样需要(吐槽一下,编辑器内叫rotation,api叫eulerAngles真的好奇怪,以产品/用户思维来看的话,这就是莫名其妙)