AutoMovie API
    Preparing search index...

    Namespace StrikingReach

    The goal maths of bringing a weapon surface onto a target point: where a two-segment limb's middle joint (elbow or knee) and end joint (wrist or ankle) must be for a point on its distal segment to sit on the target, the flexion that takes, and the declared rule when the target is out of reach.

    Only goals are computed here: the end joint's point and the middle joint's position become an HumanPosture limb goal (point and a bend hint beside the middle joint), and the engine's fitChainToTarget solves the joint angles within the range of motion, as Unreal's two-bone IK with a pole target and Final IK's limb solver take an effector goal and a bend goal. The placement is the triangle of the two segment lengths and the root-to-point distance (law of cosines), in the plane through the root and the point that contains the preferred bend direction.

    Reachability is decided against a flexion band at contact (a straight punch lands nearly extended, a hook near a right angle, a kick's knee not locked): within the band the point is met exactly; beyond the band's longest reach the limb extends along the line toward the target at that reach and stops short, the declared miss-at-maximum-reach rule, and the shortfall is reported; inside the shortest reach either the contact slides along the distal segment toward the middle joint (a jammed kick lands with the upper shin or the knee) or, where the surface is rigid with the end joint (a fist), the middle joint flexes past the band up to JAM_FLEXION.

    JAM_FLEXION
    advance
    chain
    hint
    reach