GameObject transform position does not update during game and remains at starting position

As can be seen, the game object is a ragdoll, it is not a child to anything and is at top level in scene. The transform does not change as it falls.

Is this a bug? I’m on Unity 2019.3.2f1

Thanks

I’m guessing some child of this object is the thing that’s actually moving, as the only components on this object are your two custom scripts.

1 Like

Most likely you’ve attached rigidbody as a child component of the object you’re tracking.
Rigidbodies do not move their parents. They only move themselves and their children…

Put the rigidbody component as object root, and that should solve it.

1 Like

Thanks for the replies.

Yes you are correct. The rigidbodies are on the children bone components as this is a ragdoll.

In case of ragdolls how would I monitor its movement? I want to check if the parent gameobject is below a certain poisition by the following script:

void Update()
    {
        if (transform.position.y < 1.5f)
        {
            gameManager.gameOver = true;
        }
    }