We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexDiscussionExhibition › Verlet integration / ragdoll physics
Page Index Toggle Pages: 1
Verlet integration / ragdoll physics (Read 2833 times)
Verlet integration / ragdoll physics
Mar 21st, 2009, 6:41pm
 
http://shabbyduck.org/p/particlesystem/

An application of verlet integration for ragdoll style physics. I might write a tutorial on this technique, because it rocks!
Re: Verlet integration / ragdoll physics
Reply #1 - Mar 22nd, 2009, 12:54am
 
Is it supposed to say error? I'm pretty sur my java is up-to-date.
Re: Verlet integration / ragdoll physics
Reply #2 - Mar 22nd, 2009, 4:22am
 
It's broken for me too.

But I'd definitely be interested in a tutorial on the technique, because a) the wiki page made my head spin, and b) I'm always looking for good ways to speed up my gravity simulations, and this seems like a possibly great candidate.
Re: Verlet integration / ragdoll physics
Reply #3 - Mar 22nd, 2009, 7:49am
 
Hmm... It works for me. Try this:

http://shabbyduck.org/p/particlesystem/
Re: Verlet integration / ragdoll physics
Reply #4 - Mar 22nd, 2009, 2:11pm
 
What luck!

Someone pasted me this http://www.teknikus.dk/tj/gdc2001.htm earlier today. I've been trying to get two points connected by a stick for the last three hours but translating pseudo C code into Processing is proving over my head.

Your example is clean and clear, this is really going to help me learn.

Re: Verlet integration / ragdoll physics
Reply #5 - Mar 22nd, 2009, 5:27pm
 
Yes, I found the paper by Jakobsen pretty hard to follow, especially because it was in C. These slides from a presentation on verlet integration by Keith Peters were a great resource:

http://www.bit-101.com/blog/?p=1566
Re: Verlet integration / ragdoll physics
Reply #6 - Mar 22nd, 2009, 10:50pm
 
I think you should go ahead and do a write up on this using processing. If I came up against the AS animation slides I'm not sure I'd get what was going on, but the code would be easier to read, where as the code in the hitman example is unreadable but the explanation behind it is good.

Re: Verlet integration / ragdoll physics
Reply #7 - Mar 24th, 2009, 9:51pm
 
Nice simulation Alexmiller! I particularly liked the elegant way you defined the stick class.
I had tweaked up a cloth simulation from one of the examples at http://www.cs.princeton.edu/~traer/physics/
see http://milindshastri.googlepages.com/Cloth_index.html
Its quite a nice library and I think relevant too.
Good luck.
Re: Verlet integration / ragdoll physics
Reply #8 - Mar 25th, 2009, 11:28am
 
Hahah, I just hooked my own copy of your physics demo up to Daniel Shiffman's sudden motion sensor library http://www.shiffman.net/p5/sms/

Wheeeeee!
Re: Verlet integration / ragdoll physics
Reply #9 - Mar 25th, 2009, 2:15pm
 
Nice job!

Only the rope is to elastic Smiley but it's about the ragdoll so I don't mind.
Page Index Toggle Pages: 1