Rotation based intersection of two circles inverse kinematics solver.
This IKModifier3D requires a pole target. It provides deterministic results by constructing a plane from each joint and pole target and finding the intersection of two circles (disks in 3D).
This IK can handle twist by setting the pole direction. If there are more than one bone between each set bone, their rotations are ignored, and the straight line connecting the root-middle and middle-end joints are treated as virtual bones.
Note: All the methods in this class take an index parameter. This parameter specifies which setting list entry to return if the IK has multiple entries (e.g. settings/<index>/root_bone_name).
Returns the end bone's tail direction when is_end_bone_extended() is true.
Returns the end bone tail length of the bone chain when is_end_bone_extended() is true.
Returns the pole direction vector.
If get_pole_direction() is SkeletonModifier3D.SECONDARY_DIRECTION_NONE, this method returns Vector3(0, 0, 0).
Returns the pole target node that constructs a plane which the joints are all on and the pole is trying to direct.
Sets the end bone tail direction when is_end_bone_extended() is true.
Sets the end bone tail length when is_end_bone_extended() is true.
Sets the pole direction.
The pole is on the middle bone and will direct to the pole target.
The rotation axis is a vector that is orthogonal to this and the forward vector.
Note: The pole direction and the forward vector shouldn't be colinear to avoid unintended rotation.
Sets the pole direction vector.
This vector is normalized by an internal process.
If the vector length is 0, it is considered synonymous with SkeletonModifier3D.SECONDARY_DIRECTION_NONE.
Sets the pole target node that constructs a plane which the joints are all on and the pole is trying to direct.