PDA

View Full Version : Rotational Limits & Point at Target



Hurben
04-18-2003, 04:21 AM
I hope someone can clarify this for me..

I have an object with a head and a body.
I created a null named "Head_Target" to control the head orientation.
It all works fine, then I wish to use rotational limits so the head can only rotate within a range.
But the head ignores the limits and keeps on looking at it's target!

Am I approaching this the wrong way? It seems pretty straight-forward..

thanks for any help.. :)

ursa
04-18-2003, 07:52 AM
you're going to have to use ik with a goal rather than just targeting the object. the target command always overrides limits.

ursa

Hurben
04-18-2003, 10:12 AM
Are you sure that's the only way??

It doesn't seem feasible, seeing as though I don't need IK for any of the character's motion..

How would I set up IK to work in such a way so that I can use the black diamond as a target to control the head movement with rotational limits?
I can't work it out..

Hurben
04-22-2003, 09:36 AM
Anyone?

ursa
04-22-2003, 11:09 AM
set it up this way
1. create a null called pointer (or something)
2. parent the null to the head and move it to the end of the nose
3.parent the head to some root object (the body for instance)
4. set the head's pitch and heading to be controlled by ik
5.set the pointer's pitch and heading to be controlled by ik
6.set the body's motion to be unnafected by ik of decendants
7.set the pointers goal to be the diamond.
8. turn on fulltime ik for the pointer
9. move the diamond and the head should follow
10. apply rotation limits to the head

hope this helps

ursa

Hurben
04-22-2003, 12:08 PM
Thanks heaps ursa!

I got it working thanks to you.. although I found the movement in the viewport to be slow and inaccurate..

So I've decided to go back to the targeting system which is so much snappier and more intuitive to work with, foregoing the limits..

At least now I know a little more, right?
cya :)