private void MoveBoomerang() { if (!returningToOwner && GetDistanceFromOwner() > maxDistanceFromOwner) { ReturnToOwner(); } int posX = Velocity.X == 0 ? itemToTrack.Position.X + itemToTrack.GetRectangle().Width / 2 : (int)(Position.X + Velocity.X); int posY = Velocity.Y == 0 ? itemToTrack.Position.Y + itemToTrack.GetRectangle().Height / 2 : (int)(Position.Y + Velocity.Y); Position = new Point(posX, posY); }