Im trying to move the ragdoll back at the end of animation
What happens is the Ragdoll only teleports back a certain distance every time this is called, so it ends up sliding along the floor little by little
if (A_tor.GetCurrentAnimatorStateInfo(0).normalizedTime >= 1)
I don’t understand why at all, I just want to teleport it back to original position, so if I move it by hand it should teleport back to original position, but it doesn’t
I checked that Auto Sync Transforms is enabled in Project Settings
void Start()
{
startT_pos = transform.position;
startT_rot = transform.rotation;
}
void Update()
{
if (A_tor.GetCurrentAnimatorStateInfo(0).normalizedTime >= 1)
{
transform.position = startT_pos;
transform.rotation = startT_rot;
A_tor.Play(0);
}
}