Hello, I've seen a bug in your new method: https://community.bistudio.com/wiki/calculatePath.
When you are in the event handler, the Z position axis is, in fact, the Y position axis.
Here is a screen to understand it:
I hope you can fix this, because all the position are completly unusable.
Steez