Skip to content

Commit 44d2ad0

Browse files
committed
Fix elbow IK going inwards
1 parent caa1fd7 commit 44d2ad0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooking/skeleton.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ void CemuHooks::hook_ModifyBoneMatrix(PPCInterpreter_t* hCPU) {
456456

457457
// pole vector (elbow direction)
458458
// left: left-down-back, right: right-down-back
459-
glm::vec3 poleDir = isLeft ? glm::vec3(-1.0f, -1.0f, -0.5f) : glm::vec3(1.0f, -1.0f, -0.5f);
459+
glm::vec3 poleDir = isLeft ? glm::vec3(1.0f, -1.0f, -0.5f) : glm::vec3(-1.0f, -1.0f, -0.5f);
460460

461461
// rotate pole vector by body rotation (Skl_Root)
462462
if (Bone* rootBone = s_skeleton.GetBone("Skl_Root")) {

0 commit comments

Comments
 (0)