-
Notifications
You must be signed in to change notification settings - Fork 300
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
Contact callback #101
Comments
Hi i update physics engine with new version
you have more option for collision callback
you can use new lib
https://github.com/lo-th/phy
…On Tue, Jul 27, 2021 at 4:03 PM Bikeman868 ***@***.***> wrote:
Hi, is there any way to get a callback when two objects collide? or better
still attach a callback to a specific rigid body and get a callback when it
collides with something?
I have seen this demo <https://lo-th.github.io/Oimo.js/index.html#rotation>
but this technique requires me to check every rigid body against every
other rigid body to know if anything is colliding.
Imagine that the player in my game fires a bullet and I want to know
when/if it hits anything. Testing each bullet against every object in the
scene on each step is obviously not feasible.
Thanks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#101>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAL3GOCZTWUO52WEXGEFSETTZ24B5ANCNFSM5BCJ5KBA>
.
--
*lo.th <https://lo.th>* - Freelance wegl developper & 3d modeler - github
<https://github.com/lo-th>- twitter <https://twitter.com/3dflashlo>
|
From the readme it looks like Phy is a game engine that uses Three under the hood. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, is there any way to get a callback when two objects collide? or better still attach a callback to a specific rigid body and get a callback when it collides with something?
I have seen this demo but this technique requires me to check every rigid body against every other rigid body to know if anything is colliding.
Imagine that the player in my game fires a bullet and I want to know when/if it hits anything. Testing each bullet against every object in the scene on each step is obviously not feasible.
Thanks.
The text was updated successfully, but these errors were encountered: