Jump to content

inverse kinematics with physics engine


Kesshi
 Share

Recommended Posts

I was playing around with inverse kinematics and tried to solve the problem with the physics engine of babylon js.
Physics engines are not meant to solve inverse kinematics but with the correct setup you can get some good results for simple cases.

Here is a playground for you: http://www.babylonjs-playground.com/#24XJYU#2
The trick is to give the start and the end of the chain a fixed position. I set them to mass = 0 for this. They will not get moved from the physics that way.
If you now change the position of the end directly, the physics engine will calculate the postions of the middle bones for you.
 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...