Moving character makes them grow to enormous size

Godot Version

4.6.2

Question

Hello, I'm using Godot 4.6.2, following a tutorial. Whenever I move the character, they grow to an enormous, static size, and do not shrink again. I think it has something to do with basis, as this problem only started after I implemented it to make the player face the proper way with the camera moving. Does anyone have any tips? Thank you.

rig_pivot.global_transform.basis = target_transform.basis

it looks like this is specifically causing the problem but I have no clue how to fix it.

Basis also contain information about scale.

If you want to rotate a node towards something, you could just use look_at(), it’s available both for Node2D and Node3D

thank you!