Set XRHandTracker property has_tracking_data to true only when palm joint is tracked
This commit is contained in:
parent
705b7a0b0b
commit
a64b0d3830
1 changed files with 6 additions and 1 deletions
|
@ -293,7 +293,12 @@ void OpenXRHandTrackingExtension::on_process() {
|
|||
}
|
||||
|
||||
godot_tracker->set_hand_tracking_source(source);
|
||||
godot_tracker->set_pose("default", transform, linear_velocity, angular_velocity);
|
||||
if (location.locationFlags & XR_SPACE_LOCATION_POSITION_TRACKED_BIT) {
|
||||
godot_tracker->set_pose("default", transform, linear_velocity, angular_velocity);
|
||||
} else {
|
||||
godot_tracker->set_has_tracking_data(false);
|
||||
godot_tracker->invalidate_pose("default");
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue