Skip to content

Commit

Permalink
Update collider.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ughuuu committed Oct 12, 2024
1 parent e915ed0 commit 4078769
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/geometry/collider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ impl ColliderBuilder {

/// Initializes a collider builder with a triangle mesh shape defined by its vertex and index buffers.
pub fn trimesh(vertices: Vec<Point<Real>>, indices: Vec<[u32; 3]>) -> Self {
Self::new(SharedShape::trimesh(vertices, indices))
Self::new(SharedShape::trimesh(vertices, indices).unwrap())
}

/// Initializes a collider builder with a triangle mesh shape defined by its vertex and index buffers and
Expand All @@ -696,7 +696,7 @@ impl ColliderBuilder {
indices: Vec<[u32; 3]>,
flags: TriMeshFlags,
) -> Self {
Self::new(SharedShape::trimesh_with_flags(vertices, indices, flags))
Self::new(SharedShape::trimesh_with_flags(vertices, indices, flags).unwrap())
}

/// Initializes a collider builder with a shape converted from the given triangle mesh index
Expand Down

0 comments on commit 4078769

Please sign in to comment.