Add controller offset for Quest 3
This commit is contained in:
@@ -348,6 +348,24 @@ std::pair<glm::vec3, glm::quat> controller_offset(std::string_view profile, xr::
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
else if (profile == "meta-quest-touch-plus")
|
||||||
|
{
|
||||||
|
switch (space)
|
||||||
|
{
|
||||||
|
case xr::spaces::grip_left:
|
||||||
|
case xr::spaces::grip_right:
|
||||||
|
return {{0, -0.010, -0.025}, glm::angleAxis(glm::radians(-12.f), glm::vec3{1, 0, 0})};
|
||||||
|
|
||||||
|
case xr::spaces::aim_left:
|
||||||
|
return {{0, 0, 0.03}, {1, 0, 0, 0}};
|
||||||
|
|
||||||
|
case xr::spaces::aim_right:
|
||||||
|
return {{0, 0, 0.03}, {1, 0, 0, 0}};
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
else if (profile == "htc-vive-focus-3")
|
else if (profile == "htc-vive-focus-3")
|
||||||
switch (space)
|
switch (space)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user