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

SkinnedMesh: Add raycast() method back. #25957

Merged
merged 1 commit into from
Apr 29, 2023
Merged

SkinnedMesh: Add raycast() method back. #25957

merged 1 commit into from
Apr 29, 2023

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Apr 29, 2023

Fixed: #25790.

Description

The original SkinnedMesh.raycast() method missed to convert the ray to local space which explains the breakage in #25953.

I've updated the comments in Mesh.raycast() to make more clear what's going on in the code.

@Mugen87 Mugen87 marked this pull request as ready for review April 29, 2023 10:30
@Mugen87
Copy link
Collaborator Author

Mugen87 commented Apr 29, 2023

@RemusMar I was able to fix the raycasting issues with both of your assets. It would be great if you could fetch the changes in a custom build of your app and verify if everything keeps working 👍 .

@github-actions
Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Filesize dev Filesize PR Diff
634.4 kB (157.3 kB) 634.8 kB (157.3 kB) +356 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Filesize dev Filesize PR Diff
425.8 kB (103.2 kB) 425.7 kB (103.2 kB) -35 B

Copy link
Contributor

@RemusMar RemusMar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All look good to me.

@RemusMar
Copy link
Contributor

RemusMar commented Apr 29, 2023

Michael, just be sure the new implementation is not slower than Mesh.raycast().
cheers

@Mugen87 Mugen87 added this to the r153 milestone Apr 29, 2023
@Mugen87 Mugen87 merged commit 00a427c into mrdoob:dev Apr 29, 2023
@Methuselah96 Methuselah96 mentioned this pull request Jun 4, 2023
45 tasks
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.

why raycaster.intersectObjects return emtpy Even though the ray went through the model?
2 participants