I have a Transform() lookingat a target node and I want to slerp() the basis of a spatial node to whatever the transform is lookingat. But it just ignores the slerp() without any errors coming up. I don't know what I'm doing wrong.
_process(delta):
var p2_dummy = Transform()
var p2_look = $Player1.global_transform.origin
p2_dummy.looking_at(p2_look, Vector3(0,1,0))
$Player2.global_transform.basis =
$Player2.global_transform.basis.orthonormalized().slerp(p2_dummy.basis, delta)
These are the lines that should be rotating it, but it just constantly faces one direction. Please help :(