Fix target_position
This commit is contained in:
parent
9be7af9e33
commit
d3e440aeea
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue