Fix target_position

This commit is contained in:
hodasemi 2018-06-12 12:36:08 +02:00
parent 9be7af9e33
commit d3e440aeea

View file

@ -190,7 +190,7 @@ void IKViewer::calculate_kinematic_chain(Bone *base, Bone *endeffector)
current_endeffector_matrix = current_endeffector_matrix * transform->calculate_matrix();
}
target_position = current_endeffector_matrix * endeffector->get_bone_local_tip_position();
target_position = current_base_matrix * current_endeffector_matrix * endeffector->get_bone_local_tip_position();
print_vec3(target_position);
std::cout << std::endl;