-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Add XR tracking state-change signals #81239
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Overall, I think this is a great idea. I skimmed the code and for the most part it looks good, but I didn't actually test it.
c49c9d5
to
b48cfcf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, indeed makes it easier to react to tracking changes.
I'll leave it up to you whether you want to simplify the bind/unbind logic, I think you can keep it simple, esp in OpenXR trackers will exist from the start and be bound for the lifetime of the game (/scene).
Add "pose_lost_tracking" signal to XRPositionalTracker. Add "tracking_changed" signal to XRNode3D.
b48cfcf
to
22de1b3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good style wise
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me! :-)
Thanks! |
This pull request adds signals to detect the start and stop of tracking for XR Trackers. Specifically it:
pose_lost_tracking(pose : XRPose)
signal to XRPositionalTrackertracking_changed(tracking : bool)
signal to XRNode3D