mirror of
https://github.com/baketnk/frame-yap.git
synced 2026-10-06 06:00:04 +02:00
Face right-wrist panel inward without mirroring text
This commit is contained in:
1 parent
deb8f84591
commit
29f3729df7
3 files changed
+34
-4
No files matched your search
@@ -78,6 +78,12 @@ Matrix34 relative_mount_pose(Mount mount, const WristPlacement& wrist) {
|
||||
pose[0] = {0.f, s, c, c * wrist.x + s * wrist.y};
|
||||
pose[1] = {0.f, c, -s, -s * wrist.x + c * wrist.y};
|
||||
pose[2] = {-1.f, 0.f, 0.f, wrist.z};
|
||||
if (mount == Mount::RightWrist) {
|
||||
// The wearer views the right wrist from the opposite side. Rotate
|
||||
// 180 degrees about panel-up, not a reflection or upside-down roll:
|
||||
// both right and front reverse, while up and center stay unchanged.
|
||||
for (auto& row : pose) { row[0] = -row[0]; row[2] = -row[2]; }
|
||||
}
|
||||
break;
|
||||
}
|
||||
case Mount::World: break;
|
||||
|
||||
Reference in new issue
Block a user