Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set XRHandTracker property has_tracking_data to true only when palm joint is tracked #92801

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

devloglogan
Copy link
Contributor

Currently when calling get_has_tracking_data() on an XRHandTracker, it will always return true. This update sets that value to false if the palm joint is not being tracked. It also invalidates the pose of the tracker, making it so the XRNode3D property show_when_tracked works as expected (e.g. hiding hand tracked meshes when hands aren't visible).

@devloglogan devloglogan added this to the 4.3 milestone Jun 5, 2024
@devloglogan devloglogan requested a review from a team June 5, 2024 15:19
@devloglogan devloglogan changed the title Set XRHandTracker property has_tracking_data to true only when palm joint is tracked Set XRHandTracker property has_tracking_data to true only when palm joint is tracked Jun 5, 2024
Copy link
Contributor

@dsnopek dsnopek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Looks good to me :-)

@akien-mga akien-mga merged commit 747e0f5 into godotengine:master Jun 7, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants