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

Collision and Trigger Events/Callbacks? #61

Closed
gregmax17 opened this issue Sep 15, 2017 · 2 comments
Closed

Collision and Trigger Events/Callbacks? #61

gregmax17 opened this issue Sep 15, 2017 · 2 comments

Comments

@gregmax17
Copy link

How do I determine when 2 bodies collide, is there a callback? Also, another part to that, is there way to detect when 2 bodies to be behave like triggers, is there a way to get a callback event but not have the bodies collide?

What are the available callbacks for this?

@lo-th
Copy link
Owner

lo-th commented Sep 16, 2017

@lo-th lo-th closed this as completed Sep 16, 2017
@gregmax17
Copy link
Author

Thanks you for response. However, I fail to see how this answer my second part of my question: having the bodies behave like a trigger.

Is there a way, in that example, to have one of the spheres turn to the green material while passing through their box, respectively?

Imagine in a first person shooter the player walks through a doorway to go into a room full of monsters that spawn upon entering. In that door way as the player collided with a box trigger there was no actual collision but instead a callback/event for me to start spawning monsters. Make sense?

Is there a behavior like this available?

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