Ragdoll Advice and Issues (with source)

Dec 17, 2010 at 6:35 AM

I have a very simple ragdoll, nearly the same as the demo but built with rectangles and no neck and within a Phone landscape page.  Im doing BodyObject.ApplyForce on free drag end, and the force vector is the touch delta created from _boundryHelper.ScreenToWorld().

Some problems I'm having (download the solution here)

  1. This seems to work, partially.  If you free drag too near to the doll it sorta applies the force in the opposite direction, but if you go about half the screen or more away from the doll it works. 
  2. Probably having to do with how I've built the doll, but his forearm or foot gets hung up on a platform and disconnects (stretches) away from his body for a bit before snapping back together, any advice would be great.
Dec 18, 2010 at 12:45 AM

I fixed the problem with #1, I wasnt normalizing, all set there now (I did not update the download).

For #2 I would appreciate some good advice on ragdoll structure to keep body objects from stretching at their joints.   Thanks again in advance, this is some fantastic code and engine!