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

Contact normal in b2ContactBeginTouchEvent #806

Closed
abria opened this issue Sep 25, 2024 · 1 comment
Closed

Contact normal in b2ContactBeginTouchEvent #806

abria opened this issue Sep 25, 2024 · 1 comment

Comments

@abria
Copy link

abria commented Sep 25, 2024

It would be very useful to add contact normal into b2ContactBeginTouchEvent, like b2ContactHitEvent already has.

I need to implement the collision logic based on the collision normal. If my understanding is correct, currently I have to use b2Shape_GetContactData() and do a linear search for the targeted collision between A and B. Is there a more efficient method?

erincatto added a commit that referenced this issue Sep 29, 2024
add test for null pair task
add manifold to contact begin events

#803 #806
@erincatto
Copy link
Owner

I added the entire contact manifold to the begin touch event in #808.

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