FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Only update position and rotation of wristObject3D when joint poses are available by mrxz · Pull Request #5438 · aframevr/aframe · GitHub

Only update position and rotation of wristObject3D when joint poses are available - #5438

Merged
dmarcos merged 1 commit into
aframevr:masterfrom
mrxz:fix-wrist-object-update
Jan 25, 2024
Merged

Only update position and rotation of wristObject3D when joint poses are available#5438
dmarcos merged 1 commit into
aframevr:masterfrom
mrxz:fix-wrist-object-update

Conversation

mrxz commented Jan 25, 2024

Copy link
Copy Markdown
Contributor

Description:
The issue reported in #5437 is caused by the wristObject3D in the hand-tracking-controls component ending up with NaN in its matrix. This happens when no joint poses are available, and causes subsequent computations (like bounding box overlap) to give incorrect results.

This PR simply checks that pose information is present before updating the wristObject3D. This does mean that the object in question remains at its last location and orientation. For short intermittent lack of pose information this is likely desirable, but for longer period this might be counter-intuitive.

Changes proposed:

  • Check that joint pose information is present before updating the wristObject3D

dmarcos commented Jan 25, 2024

Copy link
Copy Markdown
Member

This PR simply checks that pose information is present before updating the wristObject3D. This does mean that the object in question remains at its last location and orientation. For short intermittent lack of pose information this is likely desirable, but for longer period this might be counter-intuitive.

Yes. We should probably prevent / disable collision calculations if hands are not tracking (have disappeared)

dmarcos commented Jan 25, 2024

Copy link
Copy Markdown
Member

Thanks so much for this!

dmarcos merged commit 6c56285 into aframevr:master Jan 25, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL