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

Return the vector of the collision #2

Open
IdahoEv opened this issue Sep 14, 2016 · 0 comments
Open

Return the vector of the collision #2

IdahoEv opened this issue Sep 14, 2016 · 0 comments

Comments

@IdahoEv
Copy link
Owner

IdahoEv commented Sep 14, 2016

When two shapes s1 and s2 are colliding, the return value of the detector should be
{ :collision, {x, y} }

Where x, y is a unit vector in the direction from s1 to s2. TBD: should this always be centroid to centroid, or should I do detection of which faces are making contact and where?

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