Fix GalaxyXR controller offset

Fix GalaxyXR controller offset to controller model properly overlap the
passthrough image
This commit is contained in:
perillamint
2025-12-08 15:05:29 +01:00
committed by xytovl
parent bd907d8496
commit 281dd6000e
+10
View File
@@ -426,6 +426,16 @@ std::pair<glm::vec3, glm::quat> controller_offset(std::string_view profile, xr::
default:
break;
}
else if (profile == "samsung-galaxyxr")
switch (space)
{
case xr::spaces::grip_left:
return {{-0.005, 0.000, 0.035}, {1, 0, 0, 0}};
case xr::spaces::grip_right:
return {{0.005, 0.000, 0.035}, {1, 0, 0, 0}};
default:
break;
}
return {{0, 0, 0}, {1, 0, 0, 0}};
}