public virtual void translate(float xOffset, float yOffset) { this.setPos(gameObject.getPosX() + xOffset, gameObject.getPosY() + yOffset); }