Quantcast
Channel: Latest Questions by Larry-Dietz
Viewing all articles
Browse latest Browse all 23

Ragdoll pauses for a second when instantiating

$
0
0
I am trying to change my enemy into a ragdoll when it dies. This is working fine, however, when the ragdoll prefab instantiates, the model stands there in an akimbo position for about a second, then falls to the ground. Has anyone else had this problem? Any ideas how to correct it? These are the final 2 lines of code in the damage routine, after it is determined that the enemy is dead... GameObject go = Instantiate(RagDoll, gameObject.transform.position, gameObject.transform.rotation) as GameObject; Destroy(gameObject); Any help is appreciated.
-Larry

Viewing all articles
Browse latest Browse all 23


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