-
Notifications
You must be signed in to change notification settings - Fork 317
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
FIX: Corrected behaviour of TrackedPoseDriver when no device is connected. #1823
base: develop
Are you sure you want to change the base?
Conversation
…cted with an additional test case mimicking the reported scenario.
@smnwttbr I don't have any XR devices so I'll add an XR QA instead. @UnityRyanC |
I won't be able to test this PR as I don't have a Mac (which the bug mentions was where the issue was reproduced on). I spoke with Manuel Gonzalez Solano, who does testing on PolySpatial and Apple Vision OS, who'll be able to test this once he's free later this week. I don't have permission to update reviewers on this PR, so @Pauliusd01 could you update the PR for me please? |
Okay, I dmed him on slack since I can't find him on github by name. |
@Pauliusd01 can you add me as reviewer? I don't seem to have permission to add myself |
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.
I tested the isxb-699-trackedposedriver-fix
branch against a new Universal 3D project created and run using Unity Editor 6000.0.26f1 apple silicon and 2022.3.51f1 apple silicon, on an M1 macOS machine.
I did observe that the non-origin position and rotation was preserved on GameObjects having Tracked Pose Driver
components if I left the Ignore Tracking State
checkbox enabled.
If I check the Ignore Tracking State
checkbox, GameObjects having Tracked Pose Driver
component and set at non-origin position and rotation are once again returned to origin position and rotation when PlayMode starts
I also observed that setting Update Type = Before Render
with Ignore Tracking State
checked, non-origin rotations and positions are preserved when starting PlayMode
I've also bound input actions to change position and rotation on GameObjects having TrackedPosedDriver component, and I observe the following:
|
Removed extra white space mentioned in review feedback
Thanks for the feedback @mangosol , I have taken this old PR back again since @smnwttbr worked on it to conclude this. How should I interpret your assessment, is it in line with what you would expect? Any additional feedback/perspective from @chris-massie? |
Thanks for the feedback @mangosol , I have taken this old PR back again since @smnwttbr worked on it to conclude this. How should I interpret your assessment, is it in line with what you would expect? Any additional feedback/perspective from @chris-massie? |
I do not have sufficient context on whether the behavior I observed is expected or not; my assessment is meant to describe current behavior for either you or any other stakeholder with more in depth knowledge of functional requirements to determine if the current behavior is expected or not given the changes in this PR. I'm happy to sign off if behavior is in line with requirements |
OK, thanks, I will do a review of this then and assess it and then make a decision based on that. Thanks for testing this through and carefully documenting observations. Its helpful. |
Description
This fix is intended to fix reported behaviour in ISXB-699
.
Changes made
Modified behaviour when action reference is not set or when binding count is zero to not track position nor rotation.
Added a test case that is mimicking the reported behavior.
Notes
Requesting insights from XR team regarding any implications this might have since behavior wasn't previously covered properly in existing test cases. It also changes the behaviour commented inline in the implementation.
Checklist
Before review:
Changed
,Fixed
,Added
sections.([case %number%](https://issuetracker.unity3d.com/issues/...))
.Area_CanDoX
,Area_CanDoX_EvenIfYIsTheCase
,Area_WhenIDoX_AndYHappens_ThisIsTheResult
.During merge:
NEW: ___
.FIX: ___
.DOCS: ___
.CHANGE: ___
.RELEASE: 1.1.0-preview.3
.