Esempio n. 1
0
 /**
  * Sets the anchor point of this game object, between 0;0 and 1;1, where 0;0 is top-left and 1;1
  * is bottom-right.
  *
  * @param anchorPoint the anchor point to set
  */
 @Override
 public final void setAnchorPoint(final Vector2 anchorPoint) {
   mAnchorPoint.set(anchorPoint);
   mPivot.set(-mSize.x * mAnchorPoint.x, -mSize.y * mAnchorPoint.y, 0);
   mDirty = true;
 }
Esempio n. 2
0
 @Override
 public void setSize(final Vector2 size) {
   mSize.set(size);
   setAnchorPoint(mAnchorPoint);
 }