Close
    Close full mode

    Transform

    Last update: 2021/01/12 by 管理人

    公式

    http://labs.phaser.io/index.html?dir=transform

    概要

    GameObjectの変形の例 http://labs.phaser.io/index.html?dir=transform

    項目

    • Origin
      • 画像の原点の設定
      • デフォルトはx,y = (0.5,0.5)
      • 原点の設定位置によって、Scale,Flip,Rotationにも影響がある

    ドキュメントのOriginの項目

    The horizontal origin of this Game Object. The origin maps the relationship between the size and position of the Game Object. The default value is 0.5, meaning all Game Objects are positioned based on their center. Setting the value to 0 means the position now relates to the left of the Game Object.

    The vertical origin of this Game Object. The origin maps the relationship between the size and position of the Game Object. The default value is 0.5, meaning all Game Objects are positioned based on their center. Setting the value to 0 means the position now relates to the top of the Game Object.