Search Unity

Question Help with ragdoll

Discussion in 'Physics' started by erik969, Nov 2, 2023.

  1. erik969

    erik969

    Joined:
    May 10, 2020
    Posts:
    8
    My character has a ragdoll that is activated on death, however when the ragdoll is on and moved, the parent gameobject stays in place so when the ragdoll is turned off it clips back to where the parent was left.

    I saw that a solution is applying a fixed joint on the ragdoll that's linked to the parent RB, but I'm having issues.

    I added a script that adds the fixed joint component on runtime as soon as the ragdoll is enabled, but now the ragdoll's movement is limited to wherever the parent is, instead of the parent moving to where the ragdoll goes.