• Home

  • Forum

  • Members

  • About

  • More

    Use tab to navigate through the menu items.
    To see this working, head to your live site.
    • Categories
    • All Posts
    • My Posts
    hannahmontanah
    Apr 03, 2021

    How to stick root player object to ragdoll when in ragdoll mode

    in Active Ragdoll

    Its impractical for me to just have it standing back there


    I have noticed that on Connection it returns back and method MoveNodeWithoutChildren is called, so I started calling it every frame when disconnected

    GetComponent<GetUpAnimationBehaviour>().MoveNodeWithoutChildren(ragdollRoot.position, ragdollRoot);

    but it didnt work or its the wrong method. or it only works when player is not moving


    I need the root object ot always stick to the ragdoll, can this be achieved with your script?

    1 comment
    0
    Unity BzSoft
    Apr 04, 2021  ·  Edited: Apr 04, 2021

    Hi. First parameter of the method is `position shift`. So you have to pass how much you want to move it. Plus you have to raycast the floor to find Y position or you can just add some amount to avoid it to fall through the floor.

    I attached a file where I implemented it by adding some amount to Y position:

    fix.diff
    .txt
    Download TXT • 2KB

    0
    1 comments
     

    q-id@ya.ru

    • Facebook
    • YouTube

    ©2020 by BzSoft. Proudly created with Wix.com