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

LineSegements2: Add a "threshold" Raycaster param #20375

Merged
merged 4 commits into from
Sep 29, 2020
Merged

Conversation

gkjohnson
Copy link
Collaborator

@gkjohnson gkjohnson commented Sep 17, 2020

Adds a threshold raycaster param like Lines uses so line segments 2 can be expanded by a pixel width for raycasting.

const raycaster = new Raycaster();
raycaster.params.Line2 = { threshold: 2 };

// raycast...

ping @WestLangley

@WestLangley WestLangley self-requested a review September 18, 2020 22:51
@WestLangley WestLangley added this to the r121 milestone Sep 18, 2020
@mrdoob mrdoob merged commit 07d8167 into mrdoob:dev Sep 29, 2020
@mrdoob
Copy link
Owner

mrdoob commented Sep 29, 2020

Thanks!

@gkjohnson gkjohnson deleted the patch-2 branch September 29, 2020 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants