Skip to main content

solve_two_bone

Function solve_two_bone 

Source
pub fn solve_two_bone(chain: &mut IKChain, target: Vec3)
Expand description

Analytical two-bone IK solver.

Positions the mid and end joints so that end reaches as close to target as possible. Uses the law of cosines for the elbow angle.