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

Cannot raycaster fragment #20

Open
5 tasks done
RyugaRyuzaki opened this issue Jun 6, 2024 · 0 comments
Open
5 tasks done

Cannot raycaster fragment #20

RyugaRyuzaki opened this issue Jun 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@RyugaRyuzaki
Copy link

Describe the bug 📝

From this, https://github.com/ThatOpen/engine_clay/blob/main/src/elements/Elements/Element/index.ts#L66-L72.
There is a problem when raycaster goes to fragment. I am trying to implement this function. It seems to only work the first time with the plane of the RectangularProfile.
image
As this image, when i hover red region it's ok, but with blue region it's not.
Event i tried :

fragment.mesh.instanceMatrix.needsUpdate = true;
fragment.mesh.matrixWorldNeedsUpdate = true;
fragment.mesh.updateMatrixWorld(true);
fragment.mesh.updateWorldMatrix(true, true);
fragment.mesh.updateMatrix();

Reproduction ▶️

No response

Steps to reproduce 🔢

=========

System Info 💻

=========

Used Package Manager 📦

npm

Error Trace/Logs 📃

No response

Validations ✅

  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Make sure this is a repository issue and not a framework-specific issue. For example, if it's a THREE.js related bug, it should likely be reported to mrdoob/threejs instead.
  • Check that this is a concrete bug. For Q&A join our Community.
  • The provided reproduction is a minimal reproducible example of the bug.
@RyugaRyuzaki RyugaRyuzaki added the bug Something isn't working label Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant