Skip to content

Commit 4e5ddb7

Browse files
authored
Mention possible failure of FIX_INTERNAL_EDGES
1 parent 42975bd commit 4e5ddb7

File tree

1 file changed

+10
-6
lines changed
  • src/collision/collider/parry

1 file changed

+10
-6
lines changed

src/collision/collider/parry/mod.rs

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,9 +1189,11 @@ impl Collider {
11891189
///
11901190
/// When encountering issues with
11911191
/// [Ghost Collisions](https://box2d.org/posts/2020/06/ghost-collisions/) where bodies collide
1192-
/// with the internal edges of the trimesh, set the flag [`TrimeshFlags::FIX_INTERNAL_EDGES`] via
1193-
/// [`Self::trimesh_from_mesh_with_config`]. Note that this will only fix the issues with the
1194-
/// internal edges of a trimesh, not with boundary edges between two different colliders.
1192+
/// with the internal edges of the trimesh, try setting the flag
1193+
/// [`TrimeshFlags::FIX_INTERNAL_EDGES`] via [`Self::trimesh_from_mesh_with_config`], which
1194+
/// should fix the issue for edges where none of the adjacent triangles border their neighbor
1195+
/// triangles convexly (with an angle less than 180°). Note that this will also not fix the
1196+
/// issues with boundary edges between two different colliders.
11951197
///
11961198
/// # Example
11971199
///
@@ -1231,9 +1233,11 @@ impl Collider {
12311233
///
12321234
/// When encountering issues with
12331235
/// [Ghost Collisions](https://box2d.org/posts/2020/06/ghost-collisions/) where bodies collide
1234-
/// with the internal edges of the trimesh, set the flag [`TrimeshFlags::FIX_INTERNAL_EDGES`].
1235-
/// Note that this will only fix the issues with the internal edges of a trimesh, not with
1236-
/// boundary edges between two different colliders.
1236+
/// with the internal edges of the trimesh, try setting the flag
1237+
/// [`TrimeshFlags::FIX_INTERNAL_EDGES`], which should fix the issue for edges where none of
1238+
/// the adjacent triangles border their neighbor triangles convexly (with an angle less than
1239+
/// 180°). Note that this will also not fix the issues with boundary edges between two different
1240+
/// colliders.
12371241
///
12381242
/// # Example
12391243
///

0 commit comments

Comments
 (0)