\NormalTok{(}\DataTypeTok{float}\NormalTok{) (pose.}\FunctionTok{getY}\NormalTok{() + ym + (distanceNoiseFactor * ym * rand.}\FunctionTok{nextGaussian}\NormalTok{()))));}
\end{Highlighting}
\end{Shaded}
In the snippet below the corrected implementation is shown. Instead of
using the distance in the x and y direction, the total distance is used.
In this way, the noise addition is independent of the coordinate system.