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

Contact callback #101

Open
Bikeman868 opened this issue Jul 27, 2021 · 2 comments
Open

Contact callback #101

Bikeman868 opened this issue Jul 27, 2021 · 2 comments

Comments

@Bikeman868
Copy link

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.

@lo-th
Copy link
Owner

lo-th commented Jul 27, 2021 via email

@Bikeman868
Copy link
Author

From the readme it looks like Phy is a game engine that uses Three under the hood.
I don't want to use Three, I want to integrate with a different game engine.

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

No branches or pull requests

2 participants