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

Event collide is only thrown once when stacked objects enter trigger #187

Closed
ChrisAcrobat opened this issue Aug 22, 2023 · 1 comment
Closed

Comments

@ChrisAcrobat
Copy link

ChrisAcrobat commented Aug 22, 2023

How to reproduce

  1. Stack two Spheres on same position and collisionFilterGroup/collisionFilterMask them so they don't interact.
  2. Add collide event listeners.
  3. Add a Sphere-trigger.
  4. applyImpulse so they move into trigger.
  5. See that you only get a single collide-event.

Is it only me, or has some one else also encounted this?

@ChrisAcrobat ChrisAcrobat changed the title Event collide is only thrown one when stacked objects enter trigger Event collide is only thrown once when stacked objects enter trigger Aug 22, 2023
@ChrisAcrobat
Copy link
Author

I found my problem.
collisionFilterGroup default to 1 (first group) instead if -1 (all groups).
When I added a check to set collisionFilterGroup to -1 if it was unset everything started to work.

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

1 participant