Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Ragdoll physics without 3rd party libraries

  1. Apr 9, 2015 #1
    Hey all, are there any resources available online on rag doll physics programming without 3rd party libraries? the algorithms etc? Any help appreciated.
  2. jcsd
  3. Apr 9, 2015 #2
    Last edited: May 7, 2017
  4. Apr 9, 2015 #3
    What kind of project are you working on?
  5. Apr 18, 2015 #4
    Make a simulated robot learn to walk with genetic algorithms. I wanted to do it with neural networks but couldnt figure out what to make the inputs and outputs
  6. Apr 23, 2015 #5
    Ones you have a simulator, i personally think that it's not a good idea to not use a third party library. You will loose a lot of time to build another (and another) body simulator. I think that you need to concentrate on the interesting part. For the input and output it depend on the library, you can use joint angle and body position and the neural net will give in output the joint momentum, or the joint angle speed to control the caracter.

    Previously i try genetic algorithm for this kind of task and it doesn't work well because learning is very long. Walk can be learned by logic, automatic. You can automaticaly learn physics law with généric model regression like least square regression and then use it to search how to move using a tree to explore the configuration space.
  7. May 10, 2015 #6
    Could you elaborate on the least squares technique for learning physics please?
  8. May 10, 2015 #7
    Genetic algorithm and neural network are généric function interpolator and regression. To learn physics you can use mathématical tools that fit the observation and make a correlation with the input. So for a value of the input you can get a value for the output, the objective is to learn physical law (what is the consequence of an action). In a second step you can use this model to act on the environement. I know a publication about LWPR, a generic high dimension regression algorithm, and a paper about physics model learning.

    Link are :
  9. May 10, 2015 #8
    thanks, out of interest why do you type your 'e's like this? not complaining they are whimsical :P

  10. May 10, 2015 #9

    D H

    User Avatar
    Staff Emeritus
    Science Advisor

    Why do you want to avoid 3rd party libraries? You're using a compiler. Why aren't you using machine language? What's the difference between a 3rd party library and a compiler?

    There's a lot to be said for those 3rd party libraries. The underlying math can be very tricky. Properly modeling multi-body physics is trickier yet. The odds you'll get it right are slim to none. There are very good 3rd party libraries that are free, get it right, and are fast.
  11. May 10, 2015 #10


    User Avatar

    Staff: Mentor

  12. May 10, 2015 #11
    I use "é" because i am french and we also use e , é , é , ê , a , à , ç. It seem funny but it's not, it's an boring language.
  13. May 10, 2015 #12
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook