Quantcast
Channel: Questions in topic: "ragdoll"
Viewing all articles
Browse latest Browse all 565

Ragdoll breaks and flys far into the air...

$
0
0
So, I've been using 3DBuzz Third Person controller tutorial. All has been going well, even having to update things that no longer work. That is until Ragdoll death. I'm nearly certain that my Ragdoll is set up correctly, and that the problem is in the line of code that loads the Ragdoll. ragdoll = GameObject.Instantiate(Resources.Load("Ragdoll"), transform.position, transform.rotation) as GameObject; is the code from the Tutorial. But when applied as is, the ragdoll flies away. But when I remove the transform.position ans transform.rotation, it works (almost. As intended, just at world center, not at the character) ragdoll = GameObject.Instantiate(Resources.Load("Ragdoll")) as GameObject; The ragdoll crumples as it should, just not in the right spot... I tried transform.localPosition as well, and no difference. any hints as how to get the proper location without it flying off?

Viewing all articles
Browse latest Browse all 565

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>