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

Add helpers for ContactData and SingleContact to flip contact data #557

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

Jondolf
Copy link
Owner

@Jondolf Jondolf commented Nov 11, 2024

Objective

Sometimes it can be useful to flip contact data, for example when you want to guarantee that contact.point1 is always the point on the desired entity when iterating over its contacts.

Solution

Add flip and flipped helpers for ContactData and SingleContact.

@Jondolf Jondolf added A-Collision Relates to the broad phase, narrow phase, colliders, or other collision functionality C-Usability A quality-of-life improvement that makes Avian easier to use labels Nov 11, 2024
@Jondolf Jondolf merged commit 6370ce6 into main Nov 12, 2024
4 checks passed
@Jondolf Jondolf deleted the flip-contact-data branch November 12, 2024 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Collision Relates to the broad phase, narrow phase, colliders, or other collision functionality C-Usability A quality-of-life improvement that makes Avian easier to use
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant