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

cute_c2.h c2x usage in c2Collide and consistency int the API. #200

Open
roig opened this issue May 6, 2020 · 1 comment
Open

cute_c2.h c2x usage in c2Collide and consistency int the API. #200

roig opened this issue May 6, 2020 · 1 comment

Comments

@roig
Copy link
Contributor

roig commented May 6, 2020

Hello Randy,

I spent some time debugging an "inconsistent" behavior in c2Collide.

In c2Collide if you input a C2_TYPE that is not a c2Poly then c2x transform is not used to transform the points of that shape.

This is inconsistent with other functions in the API that use the transform in all shapes, for example in c2Toi (c2GJK one) if you input a C2_TYPE that is not a c2Poly then the c2x transform is applied to that shape.

I think that maybe what can be improved is to treat the points in the shapes as local points and always transform these points in each function in the api. (If the user passes nullptr no transformation is applied ofc)

I know that this is a minor issue but from a users perspective i think it's a bit inconsistent.
Thoughts?

@roig roig changed the title cute_c2.h c2x usage in c2Collide and consistency with the API. cute_c2.h c2x usage in c2Collide and consistency int the API. May 6, 2020
@roig roig closed this as completed May 9, 2020
@roig roig reopened this May 9, 2020
@RandyGaul
Copy link
Owner

We can update c2Collide's behavior, though this is a fairly time-consuming task. It would help to reduce time it takes to implement the changes to know which functions aren't transforming points like you expected. Do you have a list of the ones you've noticed so far?

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

2 participants