func face(iprogress,predir):
var target =vars.facing[predir].normalized()
var start = vars.facing[currentfacing].normalized()
var vec = start.slerp(target,iprogress) ##!##
global_transform = global_transform.looking_at(vec,Vector3.UP)
At commented line I get :
E 0:00:01.915 setaxisangle: The axis Vector3 must be normalized.
func works through process()
, and this error seems to accumulate exponentially.
I tried putting normalize()
at every vector introduced around that function, nothing changes. Also, this error doesn't crash project, first interpolations seem to actually work ??