Quantcast
Viewing all articles
Browse latest Browse all 565

[Solved]ragdolls work in the editor but not on android device

I have a ragdoll called ragger and a player model called runner. on a certain game event i am hiding runner and instantiating ragger in its place like so... Instantiate( ragger, runner.transform.position, runner.transform.rotation); foreach(Rigidbody body in ragger.GetComponentsInChildren()) { body.isKinematic = false; body.velocity = startingVelocity; } Renderer[] rs = GetComponentsInChildren(); foreach (Renderer r in rs) r.enabled = false; rigidbody.isKinematic = true; This works fine in the editor but on my Android device the runner doesn't get hidden and the ragdoll is not instantiated. Can anyone figure out why? I honestly haven't got a clue where to even begin... Any help appreciated. EDIT [SOLVED] I was deleting the ragdoll at the wrong time. not sure why this worked ok in the editor and not on the droid device though.....

Viewing all articles
Browse latest Browse all 565

Trending Articles



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