aboutsummaryrefslogtreecommitdiff
path: root/examples3d
diff options
context:
space:
mode:
authorSébastien Crozet <sebcrozet@dimforge.com>2024-06-09 10:57:37 +0200
committerSébastien Crozet <sebastien@crozet.re>2024-06-09 12:09:58 +0200
commitedaa36ac7e702f419faab4ff1b9af858fc84177f (patch)
tree059a92ef66db3f4769146ef20b64b3dcbb649129 /examples3d
parentcfddaa3c46e58f59d551e3dc7fc5d4380b322789 (diff)
downloadrapier-edaa36ac7e702f419faab4ff1b9af858fc84177f.tar.gz
rapier-edaa36ac7e702f419faab4ff1b9af858fc84177f.tar.bz2
rapier-edaa36ac7e702f419faab4ff1b9af858fc84177f.zip
chore: add more comments
Diffstat (limited to 'examples3d')
-rw-r--r--examples3d/Cargo.toml6
-rw-r--r--examples3d/all_examples3.rs4
-rw-r--r--examples3d/urdf3.rs5
3 files changed, 7 insertions, 8 deletions
diff --git a/examples3d/Cargo.toml b/examples3d/Cargo.toml
index e8b4356..4f09fad 100644
--- a/examples3d/Cargo.toml
+++ b/examples3d/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "rapier-examples-3d"
version = "0.1.0"
-authors = ["Sébastien Crozet <developer@crozet.re>"]
+authors = ["Sébastien Crozet <sebcrozet@dimforge.com>"]
edition = "2021"
default-run = "all_examples3"
@@ -27,8 +27,8 @@ path = "../crates/rapier_testbed3d"
[dependencies.rapier3d]
path = "../crates/rapier3d"
-[dependencies.rapier-urdf]
-path = "../crates/rapier-urdf"
+[dependencies.rapier3d-urdf]
+path = "../crates/rapier3d-urdf"
features = ["stl"]
[[bin]]
diff --git a/examples3d/all_examples3.rs b/examples3d/all_examples3.rs
index ec4f533..72a3cf7 100644
--- a/examples3d/all_examples3.rs
+++ b/examples3d/all_examples3.rs
@@ -71,7 +71,7 @@ fn demo_name_from_command_line() -> Option<String> {
None
}
-#[cfg(any(target_arch = "wasm32", target_arch = "asmjs"))]
+#[cfg(target_arch = "wasm32")]
fn demo_name_from_url() -> Option<String> {
None
// let window = stdweb::web::window();
@@ -83,7 +83,7 @@ fn demo_name_from_url() -> Option<String> {
// }
}
-#[cfg(not(any(target_arch = "wasm32", target_arch = "asmjs")))]
+#[cfg(not(target_arch = "wasm32"))]
fn demo_name_from_url() -> Option<String> {
None
}
diff --git a/examples3d/urdf3.rs b/examples3d/urdf3.rs
index ea65d8c..815cfb6 100644
--- a/examples3d/urdf3.rs
+++ b/examples3d/urdf3.rs
@@ -1,7 +1,6 @@
use rapier3d::prelude::*;
+use rapier3d_urdf::{UrdfLoaderOptions, UrdfMultibodyOptions, UrdfRobot};
use rapier_testbed3d::Testbed;
-use rapier_urdf::{UrdfLoaderOptions, UrdfMultibodyOptions, UrdfRobot};
-use std::path::Path;
pub fn init_world(testbed: &mut Testbed) {
/*
@@ -45,5 +44,5 @@ pub fn init_world(testbed: &mut Testbed) {
* Set up the testbed.
*/
testbed.set_world(bodies, colliders, impulse_joints, multibody_joints);
- testbed.look_at(point![100.0, 100.0, 100.0], Point::origin());
+ testbed.look_at(point![20.0, 20.0, 20.0], point![5.0, 0.0, 0.0]);
}