Skip to content

Single select raycast method is incorrect #2

Description

@lexonegit

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions