x


Floating ragdoll after wakeup

I'm making a game in Unity Iphone 1.7 which involves crashing objects into a ragdoll and recording the result. As the simulation progresses I save the state of all rigidbody objects so that I can replay it later. However when I reset all the object's to their initial state and then do another simulation, I get some strange results.

For some reason after several sleep / wakeup cycles, the ragdoll starts to float, as if there's very little gravity and extra linear drag.

This only occurs after maybe 5 or 6 wakeups (I sleep all the objects while replaying the previous simulation, then wake them up when a new simulation is started). Has anyone encountered this before? If so, is there a good way to solve it?

more ▼

asked Sep 14 '10 at 05:54 AM

JtM gravatar image

JtM
1 1 1 1

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

What you both seem to experience is a joint related problem. Joints are tricky objects and if they're not setup, or re-setup, correctly, they're bound to behave strangely.

In particular, I believe that you might not be saving all the joint data, JtM. The only thing you can do is diagnose, removing joints and rigidbodies and colliders to understand which ones are the culprits.

In your case Charles, it might be that your joints are simply too elastic, or if you're lucky you just forgot to set some rigidbody's connected body to its parent.

Check out URG! our automatic ragdoll tool to see how it does set up the physics, so to have a valid reference, and stop by the forum thread if you have questions http://forum.unity3d.com/threads/107501-Release-URG!-The-ultimate-ragdoll-generator

more ▼

answered Oct 11 '11 at 09:28 AM

The Arc Games gravatar image

The Arc Games
377 1 4

(comments are locked)
10|3000 characters needed characters left

I have a similar problem, although my ragdolls are only instantiated and woken up once.

When instantiated, the ragdoll falls normally for about a second, then some limbs appear to float and spin on their own as if possessed, causing the body to spin and float in the air.

It's really quite creepy.

+1 anyone have a similar problem/solution?

more ▼

answered Dec 22 '10 at 08:25 AM

Charles Van Norman gravatar image

Charles Van Norman
42 1 1 2

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1998
x1863
x162
x34
x2

asked: Sep 14 '10 at 05:54 AM

Seen: 1335 times

Last Updated: Oct 11 '11 at 09:28 AM