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

Raycast original TextMesh #62

Closed
danko-master opened this issue Jun 17, 2020 · 4 comments
Closed

Raycast original TextMesh #62

danko-master opened this issue Jun 17, 2020 · 4 comments

Comments

@danko-master
Copy link

danko-master commented Jun 17, 2020

Hi! I created a group = new THREE.Group(), also textMesh = new TextMesh() and added it to the group - group.add(textMesh). When I called raycast I got a new object (in source raycastMesh = new Mesh). But I need an original object with parent. How do I do that?

@lojjic
Copy link
Collaborator

lojjic commented Jun 17, 2020

Thanks for pointing this out. Is it just the object property on each intersection object that is incorrect?

@danko-master
Copy link
Author

In my project I search parent for each intersection object. When ray is intersect the TextMesh my project crashed, because raycaster return me clone of TextMesh (not original object with reference for parent group).

@lojjic
Copy link
Collaborator

lojjic commented Jun 17, 2020

Yes I understand, I'm asking for specifics so I make sure I fix the issue correctly. What exactly does "raycaster return me clone of TextMesh" mean? Is it the object property on the objects in the intersects array you pass to raycast()?

@lojjic
Copy link
Collaborator

lojjic commented Jun 17, 2020

OK, assuming it's just the intersection.object property you're talking about, I've just published v 0.28.1 which should fix that for you. Please reopen with additional detail if this doesn't work for you. Thanks!

@lojjic lojjic closed this as completed Jun 17, 2020
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

No branches or pull requests

2 participants