/** * Return Real Position * * <p>Get Position with animations modify. * * @return {@link Vector2} Position */ public final Vector2 getRealPosition() { final AnimationSet animationSet = getAnimationStack().animateFrame(); Vector2 position = mPosition.clone(); position.sum(animationSet.getPosition()); return position; }
/** * Get center . * * @return {@link Vector2} Center */ public final Vector2 getCenter() { return mCenter.clone(); }
/** * Return Position * * @return {@link Vector2} Position */ public final Vector2 getPosition() { return mPosition.clone(); }
/** Get Scale */ public final Vector2 getScale() { return mScale.clone(); }
/** * Set center . * * @param center {@link Vector2} Center */ public final void setCenter(final Vector2 center) { mCenter = center.clone(); }
/** * Set Sprite Position * * @param position {@link Vector2} Position */ public final void setPosition(final Vector2 position) { mPosition = position.clone(); }
/** * Set Scale * * @param scale Float Scale */ public final void setScale(final Vector2 scale) { mScale = scale.clone(); }