in this issue https://github.com/godotengine/godot-proposals/issues/4311 your post code there. I didn't understand what's the `g_transform`, is it the global transform?