-
Notifications
You must be signed in to change notification settings - Fork 191
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
Wildcard collision handler #136
Comments
Its difficult to say without more code.
|
your example worked, I tried a few different scenarios, and i think I know what I'm doing that is causing the issue. The issue only happens when i use a default_collision_handler with an wildcard_collision_handler in the same space:
this code returns:
uncommenting the two lines it returns:
|
Ah, ok, now I get the same result as you. I will do some more investigation as to why, |
I have a question that relates to this issue, dunno if it's worth opening another issue for so I'll leave a comment here for now. I'm trying to add both a wildcard collision handler for type 1 and a specific handler for types 1 and 2, but I want the wildcard handler to always be called. Currently, the specific handler overrides the wildcard when a shape of type 2 is involved. In the doc, it says you need to call the wildcard yourself using |
Oh, well spotted. It must be a leftover in the docs. I will update them when I have the chance. I think the best way to do what you want is to just call it manually like any other function. |
for the lack of a better place to ask. I don't know if it is a issue or i'm doing things wrong but a wildcard collision handler isn't supposed to be called every time a certain type of shape collides?
I've done something like that :
with no results, the shapes collides as they do normally, but i never get the message 'collision confirmed'. Also when I use something like:
I get the message 'collision confirmed' every time myshape collides with anything else, instead of only when 2 of myshape collide, the behavior I was expecting, because when using:
I only get the message 'collision confirmed' when myshape collides with myshape1, the behavior I assume is the intended.
The text was updated successfully, but these errors were encountered: