Skip to content
Open
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
16 changes: 16 additions & 0 deletions src/collision/collider/parry/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1187,6 +1187,14 @@ impl Collider {
/// The [`CollisionMargin`] component can be used to add thickness to the shape if needed.
/// For thin shapes like triangle meshes, it can help improve collision stability and performance.
///
/// When encountering issues with
/// [Ghost Collisions](https://box2d.org/posts/2020/06/ghost-collisions/) where bodies collide
/// with the internal edges of the trimesh, try setting the flag
/// [`TrimeshFlags::FIX_INTERNAL_EDGES`] via [`Self::trimesh_from_mesh_with_config`], which
/// should fix the issue for edges where none of the adjacent triangles border their neighbor
/// triangles convexly (with an angle less than 180°). Note that this will also not fix the
/// issues with boundary edges between two different colliders.
///
/// # Example
///
/// ```
Expand Down Expand Up @@ -1223,6 +1231,14 @@ impl Collider {
/// The [`CollisionMargin`] component can be used to add thickness to the shape if needed.
/// For thin shapes like triangle meshes, it can help improve collision stability and performance.
///
/// When encountering issues with
/// [Ghost Collisions](https://box2d.org/posts/2020/06/ghost-collisions/) where bodies collide
/// with the internal edges of the trimesh, try setting the flag
/// [`TrimeshFlags::FIX_INTERNAL_EDGES`], which should fix the issue for edges where none of
/// the adjacent triangles border their neighbor triangles convexly (with an angle less than
/// 180°). Note that this will also not fix the issues with boundary edges between two different
/// colliders.
///
/// # Example
///
/// ```
Expand Down
Loading