Sign in to follow this  

Help with understanding ragdoll implementation in 2d

This topic is 3589 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
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

This topic is 3589 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this