POV-Ray : Newsgroups : povray.advanced-users : inverse kinematics? : Re: inverse kinematics? Server Time
30 Jul 2024 00:24:25 EDT (-0400)
  Re: inverse kinematics?  
From: Rune
Date: 29 Mar 2001 10:02:04
Message: <3ac34e6c@news.povray.org>
"Reusser" wrote:
> My idea was actually due to trial and error before I saw
> line 84, but it still fixed the error I had when I bent the
> leg too far back.  When the leg was too far back, the whole
> leg would flip over or give me an error if the ankle and the
> hip had the same y-coord.:  shin -> \/ <-thigh.

That's because the KneeDirection have to be adjusted to fit the leg.
If the leg is like this:  shin -> \/ <-thigh.
Then the knee points downwards and thus the KneeDirection must point
downwards too. The code adjusts the KneeDirection pretty much, but it can't
read your mind - you have to tell it roughly in which direction you want the
knee to point! :)

With your method the KneeDirection is calculated automatically, but then you
just have to specify a HipAxis instead. It's not a better or worse solution,
just a different approach. Personally I find it more intuitive to specify
the KneeDirection than to specify the HipAxis.

Rune
--
\ Include files, tutorials, 3D images, raytracing jokes,
/ The POV Desktop Theme, and The POV-Ray Logo Contest can
\ all be found at http://rsj.mobilixnet.dk (updated January 28)
/ Also visit http://www.povrayusers.org


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.