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 parry's TriMeshFlags::FIX_INTERNAL_EDGES to avian's TrimeshFlags #418

Merged
merged 1 commit into from
Jul 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/collision/collider/parry/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,13 @@ bitflags::bitflags! {
/// vertices will be merged. It will no longer be the case in the future once we decouple
/// the computations.
const DELETE_DUPLICATE_TRIANGLES = 0b0100_0000;
/// If set, a special treatment will be applied to contact manifold calculation to eliminate
/// or fix contacts normals that could lead to incorrect bumps in physics simulation
/// (especially on flat surfaces).
///
/// This is achieved by taking into account adjacent triangle normals when computing contact
/// points for a given triangle.
const FIX_INTERNAL_EDGES = 0b1000_0000 | Self::ORIENTED.bits() | Self::MERGE_DUPLICATE_VERTICES.bits();
}
}

Expand Down