Jump to content
  • Advertisement
Sign in to follow this  
Grimfate126

Help with understanding ragdoll implementation in 2d

This topic is 3802 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi. I want to implement a ragdoll (rigid body) system for the psp. Ive read up on verlet integration, and it makes sense (to a degree :P). However, i dont understand how the formula, and the values translate into actual x and y coordinates for the particle (which i can display on the screen). I havent tried implementation yet, since i have to reinstall my SDK, so im sorry if this is stupid :(. I just want to be clear before i start programming. Thanks!

Share this post


Link to post
Share on other sites
Advertisement
Think of your ragdoll character as a tree structure. Each limb has a series of children. When a limb gets moved, all its children are moved with it. The limbs are also affected separately by gravity. This can be done recursively, whereby on drawing each limb, you translate the view matrix by the transformation matrix of the limb, draw it, then call the same function for each child object.

As always, I recommend you know a bit about matrix and vector maths. This is yet another discipline made simpler with matrices.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!