Skip to main content

look_at_ik

Function look_at_ik 

pub fn look_at_ik(joint_positions: &[[f32; 3]], target: [f32; 3]) -> IkResult
Expand description

Look-at IK: rotate a chain so the end effector points toward a target.

This rotates the root joint so the chain’s end points toward target. For a single-segment chain, this is a direct look-at. For multi-segment, only the root is adjusted (use ccd_ik for full-chain solving).