aboutsummaryrefslogtreecommitdiff
path: root/examples3d
diff options
context:
space:
mode:
authorThierry Berger <contact@thierryberger.com>2025-01-08 17:16:34 +0100
committerGitHub <noreply@github.com>2025-01-08 17:16:34 +0100
commitdc4bd24da869cfa8143c3ee9a98cdec662db289e (patch)
tree6ea25968a264636f40c4042ef19f3a25d9c4f52f /examples3d
parentcf77b5bf574f8363794f979510deec5c08e58401 (diff)
downloadrapier-dc4bd24da869cfa8143c3ee9a98cdec662db289e.tar.gz
rapier-dc4bd24da869cfa8143c3ee9a98cdec662db289e.tar.bz2
rapier-dc4bd24da869cfa8143c3ee9a98cdec662db289e.zip
Update to Parry 0.18 (#770)
* update to parry ~main * use traverse_depth_first * add example to test intersection * rely on upstream PR rather than local * re-enable profiler_ui for examples * rely on official parry repository * chore: switch back to the published version of parry * chore: update changelog * chore: remove dead code * fix compilation of rapier3d-meshloader and rapier3d-urdf * chore: cargo fmt --------- Co-authored-by: Sébastien Crozet <sebcrozet@dimforge.com>
Diffstat (limited to 'examples3d')
-rw-r--r--examples3d/Cargo.toml2
-rw-r--r--examples3d/debug_trimesh3.rs2
-rw-r--r--examples3d/dynamic_trimesh3.rs1
-rw-r--r--examples3d/trimesh3.rs3
4 files changed, 5 insertions, 3 deletions
diff --git a/examples3d/Cargo.toml b/examples3d/Cargo.toml
index 96ce0e0..268040b 100644
--- a/examples3d/Cargo.toml
+++ b/examples3d/Cargo.toml
@@ -23,7 +23,7 @@ bincode = "1"
[dependencies.rapier_testbed3d]
path = "../crates/rapier_testbed3d"
-features = ["profiling"]
+features = ["profiler_ui"]
[dependencies.rapier3d]
path = "../crates/rapier3d"
diff --git a/examples3d/debug_trimesh3.rs b/examples3d/debug_trimesh3.rs
index c588545..48a9bfd 100644
--- a/examples3d/debug_trimesh3.rs
+++ b/examples3d/debug_trimesh3.rs
@@ -48,7 +48,7 @@ pub fn init_world(testbed: &mut Testbed) {
let rigid_body = RigidBodyBuilder::fixed().translation(vector![0.0, 0.0, 0.0]);
let handle = bodies.insert(rigid_body);
- let collider = ColliderBuilder::trimesh(vtx, idx);
+ let collider = ColliderBuilder::trimesh(vtx, idx).expect("Could not create trimesh collider.");
colliders.insert_with_parent(collider, handle, &mut bodies);
testbed.set_initial_body_color(handle, [0.3, 0.3, 0.3]);
diff --git a/examples3d/dynamic_trimesh3.rs b/examples3d/dynamic_trimesh3.rs
index 0a82476..3f72a22 100644
--- a/examples3d/dynamic_trimesh3.rs
+++ b/examples3d/dynamic_trimesh3.rs
@@ -93,6 +93,7 @@ pub fn do_init_world(testbed: &mut Testbed, use_convex_decomposition: bool) {
} else {
// SharedShape::trimesh(vertices, indices)
SharedShape::trimesh_with_flags(vertices, indices, TriMeshFlags::FIX_INTERNAL_EDGES)
+ .unwrap()
};
shapes.push(decomposed_shape);
diff --git a/examples3d/trimesh3.rs b/examples3d/trimesh3.rs
index edbb539..c397a6c 100644
--- a/examples3d/trimesh3.rs
+++ b/examples3d/trimesh3.rs
@@ -42,7 +42,8 @@ pub fn init_world(testbed: &mut Testbed) {
vertices,
indices,
TriMeshFlags::MERGE_DUPLICATE_VERTICES,
- );
+ )
+ .unwrap();
colliders.insert_with_parent(collider, handle, &mut bodies);
/*