Hi everyone, please play with the attached file!
I’m trying to get a little figure working to point his arms at the cursor. I’ve done a lot of work on it and it sort of almost works.
The wierd thing though, is that the forearm bone, rather than simply rotating to face the target. also stretches to reach it, which really shouldn’t be happening. In addition it seems to be forcibly bent at an angle, when it really ought to be fully extending the arm to reach the point.
I’m not certain what I’m doing wrong, but have a look at the file and see if anyone can figure out my issue.
I think the issue might be with the second parameter of the IKMover class, targetIn. I don’t really understand the documentation on it, which states:
Parameters
endEffector:IKJoint — The IKJoint object to move.
targetIn:Point — The starting coordinates for the movement. This point is similar to a point on the stage of the Flash authoring tool where you can click on a symbol that is part of an IKArmature object (not necessarily on a joint), move the symbol, and consequently move the IKArmature object according to the constraints established for the IKArmature object.
For example, you have a leg and a foot, and you want to move the foot from the toe. If you specify a targetIn point at the toe of the foot, you can move the foot from that point. Otherwise, you would have to create a symbol at the toe to connect the toe to a bone before you could move the foot.
if anyone can explain that better, please do.