-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Support ray intersects mesh instances #989
Support ray intersects mesh instances #989
Conversation
21fc044
to
ad84c0d
Compare
987a57c
to
19d239c
Compare
vertexBuffer.unlock(); | ||
indexBuffer.unlock(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to unlock, as we read only from it .. otherwise gpu version is updated
@mvaligursky + @slimbuck: This is our oldest PR (nearly 3 years!!). We need to figure out what to do with it. My personal positive feelings are:
And negative feelings are:
|
@willeastcott |
This is a solution for https://forum.playcanvas.com/t/way-to-get-mesh-instance/4646 .
And the code is migrated from THREE.js 😃
Usage is learned from
app.systems.rigidbody.raycastFirst
:The result:
I've made a demo in https://scarletsky.github.io/engine/, you can open the console and see the performance and the result.