A hand brought to a target: which wrist point and hand rotation put a
chosen hand surface (the palm, the grip centre, the fist, the back of the
hand, a digit's tip or pad, or the wrist itself) on a world frame, under a
stated hand shape, and where that surface is on a displayed pose.
This is how procedural animation authors a hand contact: the effector is a
socket on the hand, the goal is a point and an orientation in the world,
and inverse kinematics solves the arm (Unreal's hand sockets with Control
Rig and Full Body IK; Final IK's effector offsets; Rosen, GDC 2014,
"Animation Bootcamp: An Indie Approach to Procedural Animation"). The arm
solver places the wrist joint, so the wrist goal is the target point less
the surface's offset from the wrist turned by the hand's rotation, the same
rigid relation HumanFoot.pivot uses for the sole.
Every surface is a frame of the body's own resolved surfaces, so the same
request fits any hand size: a point, an outward normal and a forward.
The palm, grip and fist sockets carry their own forward (the palm's along
the fingers, the grip's toward the thumb side, +Z at rest, the fist's
down); the back of the hand and the wrist take the palm's forward, along
the fingers; a digit's tip and pad take the palm normal as their forward.
The palm, grip, fist and back of the hand ride the hand bone and do not
depend on the fingers; a digit's tip and pad ride its distal phalanx, so
their frames are read by forward kinematics of the hand under the
requested shape and kept per body, surface and shape.
A rotation is the hand's world rotation from its rest, the form
HumanPosture.IGoal.rotation and fitChainToTarget's effectorRotation
take. It is built by aligning two directions: HumanHand.align turns
a surface's rest normal onto a world normal exactly and its rest forward
onto a world forward as closely as a direction across the normal allows;
HumanHand.rotation does the same for the anatomical pair of where
the fingers point and where the palm faces (rest: left fingers +X, right
fingers -X, both palms -Y, HUMANOID_REST_FRAME).
Shapes are the only finger angles a law writes, since a hand's pre-shape is
a posture of the fingers themselves, not a goal any effector reaches
(Jeannerod 1984 describes prehension as transport plus a separate shaping):
relaxed: the hand's position of rest, the fingers partly flexed at
every joint (knuckles 35, middle joints 30, end joints 20 degrees) and
the thumb's two hinges 25 each, measured from the straight finger of the
canonical body; the stand law hangs the same hand;
flat: every finger straight, an open palm (offer, stop, wave, a palm
on a surface);
point: the index straight, the other fingers curled as the fist and the
thumb folded over them;
fist: proximal phalanges 85, the middle 95 and the distal 90 degrees,
the distal at the end of its range (80 to 90 in every located norm,
DEFAULT_HUMANOID_ROM), and the thumb's proximal 40 and distal 50
degrees across the curled fingers.
The arm solver (fitChainToTarget) gives the forearm the share of an
asked hand rotation that turns about the forearm's length, within its
range of pronation and supination, and the wrist the rest by flexion and
deviation. A rotation beyond either range is clamped and its surface
lands off the point by the clamped share; HumanHand.frame reads
where the surface really is, so audits report that residual. Asked about
140 degrees or more of forearm turn away from the hand's own rotation at
its place, the nearer limit changes sides and the hand with it, so a law
keeps an asked rotation on one side of that across its instants
(test_human_motion_core_hand_rotation).
A hand brought to a target: which wrist point and hand rotation put a chosen hand surface (the palm, the grip centre, the fist, the back of the hand, a digit's tip or pad, or the wrist itself) on a world frame, under a stated hand shape, and where that surface is on a displayed pose.
This is how procedural animation authors a hand contact: the effector is a socket on the hand, the goal is a point and an orientation in the world, and inverse kinematics solves the arm (Unreal's hand sockets with Control Rig and Full Body IK; Final IK's effector offsets; Rosen, GDC 2014, "Animation Bootcamp: An Indie Approach to Procedural Animation"). The arm solver places the wrist joint, so the wrist goal is the target point less the surface's offset from the wrist turned by the hand's rotation, the same rigid relation
HumanFoot.pivotuses for the sole.Every surface is a frame of the body's own resolved surfaces, so the same request fits any hand size: a point, an outward
normaland aforward. The palm, grip and fist sockets carry their own forward (the palm's along the fingers, the grip's toward the thumb side, +Z at rest, the fist's down); the back of the hand and the wrist take the palm's forward, along the fingers; a digit's tip and pad take the palm normal as their forward. The palm, grip, fist and back of the hand ride the hand bone and do not depend on the fingers; a digit's tip and pad ride its distal phalanx, so their frames are read by forward kinematics of the hand under the requested shape and kept per body, surface and shape.A rotation is the hand's world rotation from its rest, the form
HumanPosture.IGoal.rotationandfitChainToTarget'seffectorRotationtake. It is built by aligning two directions: HumanHand.align turns a surface's rest normal onto a world normal exactly and its rest forward onto a world forward as closely as a direction across the normal allows; HumanHand.rotation does the same for the anatomical pair of where the fingers point and where the palm faces (rest: left fingers +X, right fingers -X, both palms -Y,HUMANOID_REST_FRAME).Shapes are the only finger angles a law writes, since a hand's pre-shape is a posture of the fingers themselves, not a goal any effector reaches (Jeannerod 1984 describes prehension as transport plus a separate shaping):
relaxed: the hand's position of rest, the fingers partly flexed at every joint (knuckles 35, middle joints 30, end joints 20 degrees) and the thumb's two hinges 25 each, measured from the straight finger of the canonical body; the stand law hangs the same hand;flat: every finger straight, an open palm (offer, stop, wave, a palm on a surface);point: the index straight, the other fingers curled as the fist and the thumb folded over them;fist: proximal phalanges 85, the middle 95 and the distal 90 degrees, the distal at the end of its range (80 to 90 in every located norm,DEFAULT_HUMANOID_ROM), and the thumb's proximal 40 and distal 50 degrees across the curled fingers.The arm solver (
fitChainToTarget) gives the forearm the share of an asked hand rotation that turns about the forearm's length, within its range of pronation and supination, and the wrist the rest by flexion and deviation. A rotation beyond either range is clamped and its surface lands off the point by the clamped share; HumanHand.frame reads where the surface really is, so audits report that residual. Asked about 140 degrees or more of forearm turn away from the hand's own rotation at its place, the nearer limit changes sides and the hand with it, so a law keeps an asked rotation on one side of that across its instants (test_human_motion_core_hand_rotation).