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

Physics: Replace collision groups with collision pairs #765

Open
davesmith00000 opened this issue Sep 18, 2024 · 0 comments
Open

Physics: Replace collision groups with collision pairs #765

davesmith00000 opened this issue Sep 18, 2024 · 0 comments

Comments

@davesmith00000
Copy link
Member

davesmith00000 commented Sep 18, 2024

Indigo's physics engine currently looks for groups of colliders that have ..collided.. and attempts to resolve them. This works, but isn't how other physics engines solve the problem. Other engines look for pairs of colliders that have collided, and just solve those.

The ask in this ticket is to move to this more standard approach of solving pairs. It's unclear to me what the implications are for the current solution, but I suspect this will be more scalable and work better when we look at implementing separating axis theorem for detecting collisions.


Original issue description:

This might be a duplicate issue, but I couldn't quickly see another. I've definitely considered this before and I think it's the right thing to do. (I also suspect it's the standard thing to do...)

Additionally it should allow for an interesting possibility mentioned by @JPonte in another context, for using functions that say (ball, cube) => ??? on collision rather than two function for each colliding with the other, which should be more intuitive to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant