POV-Ray : Newsgroups : povray.advanced-users : Need Help jointing a leg for IK : Re: Need Help jointing a leg for IK Server Time
30 Jul 2024 02:19:46 EDT (-0400)
  Re: Need Help jointing a leg for IK  
From: Tor Olav Kristensen
Date: 26 Sep 2000 19:13:57
Message: <39D12D77.D981B5CE@hotmail.com>
Tor Olav Kristensen wrote:

> ...
> Is it something like the code below that you need ?
> ...

I was curious about how John VanSickle did his FindKnee
macro.

So I  had a look at it - and found that his is very similar to mine.

But I learned from his code that my test for correctness of the
ankle position relative to the hip position is not comprehensive
enough.

This part in my code:

#declare LegLength = LengthOfThigh + LengthOfShin;

#if (vlength(PositionOfAnkle - PositionOfpHip) > LegLength)
  #debug "\n\nError: The ankle is to far away from the hip.\n\n"
#end // if

should be replaced by this:

#declare Dist = vlength(PositionOfAnkle - PositionOfpHip);

#if (Dist > LengthOfThigh + LengthOfShin)
  #debug "\n\nError: The ankle is too far away from the hip.\n\n"
#end // if

#if (Dist < abs(LengthOfThigh - LengthOfShin))
  #debug "\n\nError: The ankle is too close to the hip.\n\n"
#end // if


Tor Olav
--
mailto:tor### [at] hotmailcom
http://www.crosswinds.net/~tok/tokrays.html


Post a reply to this message

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