Skip to content

Conversation

@Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Apr 7, 2023

Fixed #25790.

Description

This PR ensures SkinnedMesh uses the correct bounding sphere for raycasting (similar to InstancedMesh). This is achieved by overwriting raycast().

The PR also overwrites getVertexPosition() since it's better regarding inheritance when Mesh does not know about SkinnedMesh (meaning does not perform isSkinnedMesh checks).

@Mugen87 Mugen87 added this to the r152 milestone Apr 7, 2023
@github-actions
Copy link

github-actions bot commented Apr 7, 2023

📦 Bundle size

Full ESM build, minified and gzipped.

Filesize Gzipped Diff from dev
633.5 kB 157 kB +326 B

🌳 Bundle size after tree-shaking

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

Filesize Gzipped Diff from dev
424.8 kB 103 kB +28 B

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