-
Notifications
You must be signed in to change notification settings - Fork 27
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
[Question] Checking Colission #31
Comments
I think you may be looking for this? https://austineast.dev/echo/api/echo/Echo.html#check It can be used like so: world.check(body_a, body_b, my_collision_options); |
it doesn't return bool, I don't understand how exactly I can check it. |
Adding to this issue, it would be great to have a more direct api for conditional collision checks. ala: var collided = world.check(bodyA, bodyB, options).when((A,B, Data) -> {
return true;
})
// or
world.listen(bodyA, bodyB, options).when((A,B, Data) -> {
return true;
}).onEnter((A,B, Data) -> {
// do things
})
|
bodyA.collision(bodyB) == true Is such a sync colission detection possible? |
Is there a sync function to check the colission between 2 bodies?
The text was updated successfully, but these errors were encountered: