Skip to main content

solve_two_bone_motor_ik_zero_heap

Function solve_two_bone_motor_ik_zero_heap 

pub fn solve_two_bone_motor_ik_zero_heap(
    root_world: Motor,
    mid_world: Motor,
    end_world: Motor,
    l1: f32,
    l2: f32,
    target_pos: [f32; 3],
    pole_target: [f32; 3],
    min_knee_angle_rad: f32,
    max_knee_angle_rad: f32,
) -> Result<TwoBoneIkResult, SkeletalError>
Expand description

Analytically solves two-bone inverse kinematics (e.g., hip–knee–ankle or shoulder–elbow–wrist) directly on PGA Motors using the Law of Cosines and a pole-vector bend plane (HotZeroHeap).