You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-24 15:26:15 +00:00
Set XRHandTracker property has_tracking_data to true only when palm joint is tracked
This commit is contained in:
@@ -293,7 +293,12 @@ void OpenXRHandTrackingExtension::on_process() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
godot_tracker->set_hand_tracking_source(source);
|
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 {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user