I have in my document several tikz pictures wraped with wrapfigure, only one of them is having overllaping with text,
As you can see, the math equation is centered as if no wrap figure was present, here is the code (bear in mind, I'v stripped most of non-issue code). However when compiling the code on overleaf (project url is in the bottom) the problem is non-exsitent, I'm using MikTeX + PDFLaTeX on windows 10 machine.
\documentclass[12pt]{book}
\usepackage[top = 1in,
bottom = 1in,
left = 0.75in,
right = 0.75in
]{geometry}
\usepackage{tikz}
\usetikzlibrary{3d}
\usepackage{graphicx}
\usepackage{amsmath, amsfonts}
\usepackage{wrapfig}
\usepackage{pgfplots}
\begin{document}
\begin{wrapfigure}{r}{0.35\textwidth}
\vspace{-60pt}
\begin{tikzpicture}[scale = 3]
\filldraw [very thick, draw = red, fill = red!10] (0, 0) -- (0.5, 0) arc[start angle = 0, end angle = 45, radius = 0.5] -- cycle;
\filldraw [very thick, draw = red, fill = red!10, rotate = 90] (0, 0) -- (0.5, 0) arc[start angle = 0, end angle = 45, radius = 0.5] -- cycle;
\node [anchor = south west] at (22.5: 0.5) {$\Psi$};
\node [anchor = south east] at (112.5: 0.5) {$\Psi$};
\node [anchor = west] at (1, 0) {$\vec{i}$};
\node [anchor = south] at (0, 1) {$\vec{j}$};
\node [anchor = south west] at (45:1) {$\vec{u}$};
\node [anchor = south east] at (135:1) {$\vec{v_1}$};
\node [anchor = north west] at (0.1, 0) {$O$};
\node [anchor = east] at (-0.1, 0) {$\vec{k}$};
\filldraw [fill = orange!50, draw = orange, very thick] (0, 0) circle (0.075);
\begin{scope}[red, ->, very thick]
\draw (0, 0) -- (0, 1);
\draw (0, 0) -- (1, 0);
\end{scope}
\begin{scope}[rotate = 45, green, ->, very thick]
\draw (0, 0) -- (0, 1);
\draw (0, 0) -- (1, 0);
\end{scope}
\draw (-1, -1) rectangle (1.2, 2);
\end{tikzpicture}
\end{wrapfigure}
\subsection{Mutation Rotation $\theta$}
It is the rotation around the $\vec{u}$ axis.
$$\vec{\Omega}(R_2/R_1) = \dot{\theta} \vec{u}$$
$$\left(\vec{u},\vec{v_1}, \vec{k_0}\right)\longrightarrow\left(\vec{u}, \vec{v},\vec{k_s}\right)$$
\end{document}
Here is a screen shot of this program, you can see there is a wraping problem along the x-axis.
I've uploaded the whole code to overleaf.com, in case you needed all of it.
$$
in latex.