Fix : 로코코 손가락 축 변경 코드
This commit is contained in:
parent
b1a6cbfcbb
commit
3427df89cf
@ -1226,14 +1226,14 @@ void OptiTrackPluginDevices::ExampleDevice::ExampleGloveAdapterSingleton::Calcul
|
||||
if (handSide == eGloveHandSide::Left) {
|
||||
// 🤚 왼손 일반 손가락: x y z → z y x (기존 방식)
|
||||
outputNodes[startIndex + i].quat_w = finalRotation.quat_w; // W는 그대로
|
||||
outputNodes[startIndex + i].quat_x = finalRotation.quat_z; // X ← Z
|
||||
outputNodes[startIndex + i].quat_y = -finalRotation.quat_y; // Y ← -Y
|
||||
outputNodes[startIndex + i].quat_x = finalRotation.quat_y; // X ← Z
|
||||
outputNodes[startIndex + i].quat_y = -finalRotation.quat_z; // Y ← -Y
|
||||
outputNodes[startIndex + i].quat_z = -finalRotation.quat_x; // Z ← -X
|
||||
} else {
|
||||
// 🖐️ 오른손 일반 손가락: 대칭적 축 매핑 (미러링 보정)
|
||||
outputNodes[startIndex + i].quat_w = finalRotation.quat_w; // W는 그대로
|
||||
outputNodes[startIndex + i].quat_x = -finalRotation.quat_z; // X ← -Z (미러링)
|
||||
outputNodes[startIndex + i].quat_y = finalRotation.quat_y; // Y ← Y (그대로)
|
||||
outputNodes[startIndex + i].quat_x = -finalRotation.quat_y; // X ← -Z (미러링)
|
||||
outputNodes[startIndex + i].quat_y = -finalRotation.quat_z; // Y ← Y (그대로)
|
||||
outputNodes[startIndex + i].quat_z = finalRotation.quat_x; // Z ← X (미러링)
|
||||
}
|
||||
}
|
||||
|
||||
BIN
Optitrack Rokoko Glove/RokokoGloveDevice/x64/Debug/ExampleGloveAdapterSingleton.obj
(Stored with Git LFS)
BIN
Optitrack Rokoko Glove/RokokoGloveDevice/x64/Debug/ExampleGloveAdapterSingleton.obj
(Stored with Git LFS)
Binary file not shown.
BIN
Optitrack Rokoko Glove/RokokoGloveDevice/x64/Debug/ExampleGloveDevice.obj
(Stored with Git LFS)
BIN
Optitrack Rokoko Glove/RokokoGloveDevice/x64/Debug/ExampleGloveDevice.obj
(Stored with Git LFS)
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user