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

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