A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: ragdoll physics

  1. #1
    killerjackaroo
    Join Date
    Aug 2005
    Location
    San Francisco <--the ****
    Posts
    44

    ragdoll physics

    always something i have wondered about

    any suggestions at all?

  2. #2
    Senior Member axcho's Avatar
    Join Date
    Jun 2006
    Posts
    113
    I learned from this excellent tutorial, which explains how to use Verlet integration for ragdoll physics.

    What game are you trying to make? If you have something specific in mind it might be easier to help you.

    If you want I could go over the source code for my ragdoll demo here. I'd need a good reason to share this code with you though.

  3. #3
    Member
    Join Date
    Dec 2005
    Posts
    60
    That is a great tutorial. I just want to have code for angular constraints too to create perfect ragdolls!

  4. #4
    Senior Member axcho's Avatar
    Join Date
    Jun 2006
    Posts
    113
    Quote Originally Posted by Snipergen
    That is a great tutorial. I just want to have code for angular constraints too to create perfect ragdolls!
    You don't need angular constrainst to make good ragdolls! I don't even know how to do angular constrainsts and I don't plan on learning. Instead I just use normal length constraints, which are a lot more efficient because they don't use trigonometry.

    Take a look at the ragdoll demo I posted earlier in this thread. Those light blue lines represent the invisible springs that keep the ragdoll bodies in the right shape. You can change the stretchiness of those springs by changing the "flex" variable in my demo. And if you press the Escape key, they will turn invisible.

    Don't waste your time with angular constraints! Use invisible springs instead.

  5. #5
    Senior Member ozmic66's Avatar
    Join Date
    Oct 2005
    Posts
    472
    Quote Originally Posted by axcho
    You don't need angular constrainst to make good ragdolls! I don't even know how to do angular constrainsts and I don't plan on learning. Instead I just use normal length constraints, which are a lot more efficient because they don't use trigonometry.

    Take a look at the ragdoll demo I posted earlier in this thread. Those light blue lines represent the invisible springs that keep the ragdoll bodies in the right shape. You can change the stretchiness of those springs by changing the "flex" variable in my demo. And if you press the Escape key, they will turn invisible.

    Don't waste your time with angular constraints! Use invisible springs instead.
    Angular constraints are a pain to get working right, but once you do they're actually pretty usefull. It's true that they are not as efficient as regular constraints, and they also get unstable if you use a lot of them on a small amount of particles. But there are cases where regular constraints just can't do the job...

  6. #6
    Member
    Join Date
    Dec 2005
    Posts
    60
    Indeed and I prefer angular constraints for ragdolls.

  7. #7
    purple lizard
    Join Date
    Jan 2007
    Location
    somewhere in the world
    Posts
    85
    Quote Originally Posted by axcho
    I learned from this excellent tutorial, which explains how to use Verlet integration for ragdoll physics.

    What game are you trying to make? If you have something specific in mind it might be easier to help you.

    If you want I could go over the source code for my ragdoll demo here. I'd need a good reason to share this code with you though.
    ooh, i'd love you to share your knowledge. Go here to get ragdoll downloads from everwhere!

  8. #8
    Junior Member
    Join Date
    Aug 2009
    Posts
    2

    Post Need HELP

    hello
    thats a really good demo you have.
    how long did it take to make?
    and was it easy?

    because im thinks off to make a game (not published!) like ragdoll avalache
    and in that you move with the arrow keys and you are a ragdoll just like in your demo.

    so do you think you can send me the script for the ragdoll that moves with the arrows keys

    if i ever make a game i will say its created by you and me

    so what do you think?
    please

  9. #9
    Junior Member
    Join Date
    Aug 2009
    Posts
    2

    Post Sorry about the other.. i need help RAGDOLL

    Quote Originally Posted by axcho View Post
    I learned from this excellent tutorial, which explains how to use Verlet integration for ragdoll physics.

    What game are you trying to make? If you have something specific in mind it might be easier to help you.

    If you want I could go over the source code for my ragdoll demo here. I'd need a good reason to share this code with you though.
    hello
    thats a really good demo you have.
    how long did it take to make?
    and was it easy?

    because im thinks off to make a game (not published!) like ragdoll avalache
    and in that you move with the arrow keys and you are a ragdoll just like in your demo.

    so do you think you can send me the script for the ragdoll that moves with the arrows keys

    if i ever make a game i will say its created by you and me

    so what do you think?
    please

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center