Question by
goldencrpr · May 05, 2020 at 09:12 PM ·
physics3dragdoll
how to stand up a ragdoll
to make it simple, i have a ragdoll that is always a ragdoll, it can walk, run, jump ecc, one thing can do, becouse i absolutely don't know how to make it possible, is to stand up, and return to normal position, when falling on ground :c.
what i've tryied as a solution i think it's a war crime and will scare everyone:
if(Input.GetKey(KeyCode.E))
{
transform.position = new Vector3(transform.position.x, 2, transform.position.z);
transform.rotation = Quaternion.Euler(0, 0, -90);
rb.constraints = RigidbodyConstraints.FreezeRotation;
fallen = false;
}
obiusly this is horrible to see, as the ragdoll teleport at normal pose, and for some reason, the legs are bugged lol, example: https://streamable.com/463yck
full script, full hell: https://pastebin.com/zmbZWupw
Comment