chore: add more comments
This commit is contained in:
committed by
Sébastien Crozet
parent
cfddaa3c46
commit
edaa36ac7e
@@ -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]]
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user