- Home /
Is there something like HeadLook but for hands?
I'm wondering if anyone knows of an existing script or extension which would do something like what HeadLook does, but for hands? Like I want to tell my character to 'point at this thing' and have it figure the IK to do that, smoothly. Could the Head Look Controller be modified to do that? (Obviously I'm no IK expert). Thanks.
(my answer wasn't really an answer so i removed it!)
Hey,
I'm not aware of a I$$anonymous$$ script with that function, But you could probably just rotate the shoulder to the disired direction and then lag the elbow joint behind that (within natural limits of course)
You'll probably want to start with the root of the character though as you'll want to turn him around before making him point behind him.
If you want to go more fancy you could take the spine into account making him twist his body.
You could also start with the hips but then you'll need I$$anonymous$$ controllers on the legs and that will make things a lot more complex. Probably you best off animating steps around while rotating the character controller.
Good luck!
Thanks. The Head Look script does something like that, in that you can tell it which bones to affect and which ones not. I figured I would get a 'usable range' for each arm, pick the closest arm if either is in that range, and just point. Otherwise, turn the character until an arm is in range and then point. I'm just not sure on all that math. Always easier to find an example before climbing that learning curve.
But this did not work with the headlookcontroller on the wiki? I've no experience with it but it looks like it may be possible with it. not for both arms of course but maybe you could set it up from the spine to the shoulder and work from there?
That's what I was thinking. The head look controller rotates the head so the face looks at a point. Would that be like the elbow in my case, so that the forearm 'looks' at the target?
Yeah! that could work, Although I'd start with a test on the shoulder ins$$anonymous$$d of the elbow as the shoulder is the joint that probably points the most. you mainly just stretch your elbow and then point by rotating your shoulder spine and hips.
Your answer
![](https://koobas.hobune.stream/wayback/20220612151940im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Catching ball using a humanoid model in unity? 0 Answers
Inverse Kinematics for non-humanoids 0 Answers
TWO BONE IK in unity 0 Answers