MRTK Ray Interactor & XR Target Filter with object inside object #11826
Unanswered
AlexMerigot
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I encounter a problem on my raycast management, I want to pick object inside other object, to achieve this I use a XR Target Filter which work (I build a sizeEvaluator) : see debugger follow.
![debugger](https://private-user-images.githubusercontent.com/104435310/331522586-9df3233f-a5dd-4258-8572-23c61a47bfd9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU4Mjc5MzksIm5iZiI6MTcyNTgyNzYzOSwicGF0aCI6Ii8xMDQ0MzUzMTAvMzMxNTIyNTg2LTlkZjMyMzNmLWE1ZGQtNDI1OC04NTcyLTIzYzYxYTQ3YmZkOS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwOFQyMDMzNTlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iYTRkZWFhZWY0YmM2N2NjMjdkYTA4NTkzMzlkOTI5Y2U0OGM4NzIxNDA4OWU4ZmQxYjEwNGM5NDNjN2E1N2ZjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.RmPxGdOe6l7RkaYgEq90WBsbsvdqmJQkieyq6s8mJg4)
However When I point the raycast on the object, the line stop at the first game object touched even whith the 'stop line' option unchecked. See :
![Capture d'écran 2024-05-17 103205](https://private-user-images.githubusercontent.com/104435310/331522937-de30190b-cc1e-42db-b782-3805e7a7f685.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU4Mjc5MzksIm5iZiI6MTcyNTgyNzYzOSwicGF0aCI6Ii8xMDQ0MzUzMTAvMzMxNTIyOTM3LWRlMzAxOTBiLWNjMWUtNDJkYi1iNzgyLTM4MDVlN2E3ZjY4NS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwOFQyMDMzNTlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lZGZmNTZmNTZiMjI1N2M4YjRiNWUzMjViY2ZmMWM4ZmExNDBmNDI0ZGNkMzk4ZWIzMzk1NGM3ZTk4NmMwMzlkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.oHUwJ5iDyK4X3oyabzX8426dp2aAx5OZK-TAPksNzu0)
This problem is not user friendly because you have to guess the trajectory of the line to reach some object.
Here are my settings:
![line visual](https://private-user-images.githubusercontent.com/104435310/331523260-322195d9-cf36-4c0d-a569-0c3d89bd3a51.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU4Mjc5MzksIm5iZiI6MTcyNTgyNzYzOSwicGF0aCI6Ii8xMDQ0MzUzMTAvMzMxNTIzMjYwLTMyMjE5NWQ5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Z25hdHVyZT1lMTFjY2YxNDZiODA0YjlmMjE3ODdhZmNiNzMzOTI4ZWNmN2MxMzBmNWI0NDBhY2M2ZjFjMTI3Y2MxZjEzZWQyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.xJ0UO7Cd6nPUpVz_ygKY3GYmxMEPBRmNAoFgHe6_de4)
I tried a lot of configuration, layer/ Interaction layer, but if I disable the layer the front object cannot be move, which is not what I want to do...
Beta Was this translation helpful? Give feedback.
All reactions