#include "behavior_actions.h"
#include "rendering_graph_node.h"
#include "object_stuff.h"
#include "../shim.h"

// not sure what this is doing here. not in a behavior file.
Gfx *geo_move_mario_part_from_parent(s32 run, UNUSED struct GraphNode *node, Mat4 mtx)
{
    Mat4 sp20;

    if (run == TRUE)
    {
        struct Object *sp1C = (struct Object *)gCurGraphNodeObject;
        if (sp1C == gMarioObject && sp1C->prevObj != NULL)
        {
            create_transformation_from_matrices(sp20, mtx, *gCurGraphNodeCamera->matrixPtr);
            obj_update_pos_from_parent_transformation(sp20, sp1C->prevObj);
            obj_set_gfx_pos_from_pos(sp1C->prevObj);
        }
    }
    return NULL;
}