Previously titled: "Wrong error: set_axis_angle: The axis Vector3 must be normalized."
I figured out that var tpCheckNow = tpCheck.get_transform().origin
caused this error to be thrown, and using var tpCheck.get_global_transform().origin
fixes it. But it causes undesired results, how do I use slerp with local transforms?
So I have this little piece of code (see below) which works as expected and doesn't seem to have any side effects.
var tpCheckNow = tpCheck.get_transform().origin
var tpCheckGoal = tpOrient
var tpSlide = tpCheckNow.slerp(tpCheckGoal, 0.12)
Basically I have a teleportation marker (which shows shows where the player will teleport to) and it changes location based on where the player is moving towards. That all works fine, but I keep getting the "set_axis_angle: The axis Vector3 must be normalized. <C++ Error> Condition "!p_axis.is_normalized()" is true. <C++ Source> core/math/basis.cpp:803 @ set_axis_angle()" Error.
I have tried normalising every vector involved (tpCheckNow, tpCheckGoal & tpSlide) I have even tried it in different places. But for some reason it keeps throwing this error and it completely floods the debug window.
The trace also shows it specifically comes from the third line of code from this snippet. (where tpSlide is declared)