Reparenting a Node that contains a skeleton mesh

panicqpanicq Posts: 67Member
edited June 15 in Programming

Hey,

As the title says, I'm trying to do a simple re-parenting of an animated character in the scene tree.

I first store the GlobalTransform of the node, then do a RemoveChild then an AddChild and finally I set the GlobalTransform back to the previously stored one. With this , the rig is exploding for a few frames. Any tips to solve my issue ?

Thanks in advance !

Panicq


Tags :

Comments

  • juppijuppi Posts: 2Member

    Hey Panicq,

    i can not reproduce your issue. Can you post your script ?

  • panicqpanicq Posts: 67Member
    edited June 24

    Hey,

    There is not that much in the script, as I said, it's a simple

    parent.RemoveChild(character);
    newParent.AddChild(character);
    

    And, the character is playing an animation. I've checked, all my scales are uniform.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file