Split pico4/4u controller offsets

Values provided in https://github.com/WiVRn/WiVRn/pull/908#issuecomment-4439106699
This commit is contained in:
Patrick Nicolas
2026-05-20 11:01:52 +02:00
committed by xytovl
parent eca2949a5c
commit a870344405
+19 -1
View File
@@ -441,7 +441,7 @@ std::pair<glm::vec3, glm::quat> hmd_traits::controller_offset(xr::spaces space)
break;
}
}
else if (profile == "pico-4" or profile == "pico-4u")
else if (profile == "pico-4")
{
switch (space)
{
@@ -459,6 +459,24 @@ std::pair<glm::vec3, glm::quat> hmd_traits::controller_offset(xr::spaces space)
break;
}
}
else if (profile == "pico-4u")
{
switch (space)
{
case xr::spaces::grip_left:
case xr::spaces::grip_right:
return {{0, -0.042, -0.042}, glm::angleAxis(glm::radians(-8.f), glm::vec3{1, 0, 0})};
case xr::spaces::aim_left:
return {{-0.005, 0, 0.02}, {1, 0, 0, 0}};
case xr::spaces::aim_right:
return {{0.005, 0, 0.02}, {1, 0, 0, 0}};
default:
break;
}
}
else if (profile == "htc-vive-focus-3")
{
switch (space)