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

Multipoint 6DoF behavior doesn't work correctly in XR #14914

Open
RaananW opened this issue Mar 27, 2024 · 1 comment
Open

Multipoint 6DoF behavior doesn't work correctly in XR #14914

RaananW opened this issue Mar 27, 2024 · 1 comment

Comments

@RaananW
Copy link
Member

RaananW commented Mar 27, 2024

When in XR multipoint scaling of the 6DoF doesn't work correctly. The mesh either scales incorrectly or moves to a different position when one of the hands is triggering a pointer up.

An initial solution can be found on my local branch - https://github.com/RaananW/Babylon.js/tree/6DoFMultipointFix-Start

The main issue is that in XR the transform nodes used during drag/scale/move are parented to the origin mesh (usually the controllers). This work correctly, but the reset function doesn't work correctly because it doesn't take this parenting into account. Another issue is that during PointerDown there are different state changes that do not happen in the reset function.

To avoid making changes that might break other scenarios I am not about to commit these changes or continue developing the fix for now, and will wait for the 7.0 release to fix it.

Note that this PR is merged for 7.0 - #14911 , which disabled multipoint behavior in XR scenarios.

Copy link

This issue has been automatically staled because it has been inactive for more than 14 days. Please update to "unstale".

@github-actions github-actions bot added the stale label Apr 25, 2024
@BabylonJS BabylonJS deleted a comment from AAADora Nov 30, 2024
@RaananW RaananW self-assigned this Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants