4

I'm programming a spider that should have realistic movement. Currently I'm using this site as reference for how the legs should move, but I'm unsure how to implement it.

http://www.mechanicalspider.com/comparison.html

I know that some of the points move in a sine wave motion assigned to an x or y value and the ones that rotate around a fixed point are straightforward, but I don't understand how the bottom two 'feet' points move in relation to the other points. I'm not looking for code here so much as an explanation of how this could be turned into code.

Don't hesitate to ask if I haven't been clear enough, thanks. I'm building this in Processing by the way.

JJJ
  • 32,902
  • 20
  • 89
  • 102
Mike
  • 963
  • 4
  • 16
  • 38
  • 1
    Take a look at the Box2D physics engine for Flash. There are some demos, including a spider. It looks realistic to me. You can download the code: (You have to iterate over the demos to find the spider) http://box2dflash.sourceforge.net/ – Martijn Courteaux Apr 06 '11 at 15:10

1 Answers1

3

You may read about inverse kinematics.

stemm
  • 5,960
  • 2
  • 34
  • 64
  • Thanks, I found an example for Processing, so this is just what I needed. Heres the link: http://idblab.blogspot.com/2008/10/inverse-kinematics-and-processing.html – Mike Apr 06 '11 at 15:17
  • Great :) If you also need any advices how to solve inverse kinematics problem, I may help :) – stemm Apr 06 '11 at 15:19