Add hip tracking toggle for fb body tracking

* Only forward hip joint from FB_body_tracking when lower body is enabled

* Fix body tracking tooltips being too wide
This commit is contained in:
Sapphire
2025-06-08 18:07:23 +02:00
committed by xytovl
parent 1d6b444ec6
commit 40f02b9404
7 changed files with 34 additions and 12 deletions
+6 -2
View File
@@ -231,8 +231,12 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
if (application::get_fb_body_tracking_supported())
{
auto num_trackers = config.fb_lower_body
? xr::fb_body_tracker::joint_whitelist.size()
: std::ranges::count_if(xr::fb_body_tracker::joint_whitelist, [](auto & joint) { return joint < XR_FULL_BODY_JOINT_LEFT_UPPER_LEG_META; });
? std::ranges::count_if(xr::fb_body_tracker::joint_whitelist, [&config](auto joint) {
return config.fb_hip || joint != XR_FULL_BODY_JOINT_HIPS_META;
})
: std::ranges::count_if(xr::fb_body_tracker::joint_whitelist, [](auto joint) {
return joint != XR_FULL_BODY_JOINT_HIPS_META && joint < XR_FULL_BODY_JOINT_LEFT_UPPER_LEG_META;
});
info.num_generic_trackers = num_trackers;
}
else if (application::get_pico_body_tracking_supported())