Skip to content

Single select raycast method is incorrect #2

Open

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

  1. self-assigned this
    on Sep 29, 2022
  2. removed their assignment
    on May 5, 2023
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