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

Single select raycast method is incorrect #2

Open
lexonegit opened this issue Sep 29, 2022 · 0 comments
Open

Single select raycast method is incorrect #2

lexonegit opened this issue Sep 29, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@lexonegit
Copy link
Owner

Currently the single selecting uses Physics.RaycastAll and then picks the first valid hit. This doesn't work reliably because the order is random.

From Unity docs: "RaycastHit[] An array of RaycastHit objects. Note that the order of the results is undefined."
https://docs.unity3d.com/ScriptReference/Physics.RaycastAll.html

@lexonegit lexonegit added the bug Something isn't working label Sep 29, 2022
@lexonegit lexonegit self-assigned this Sep 29, 2022
@lexonegit lexonegit removed their assignment May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant