chore: add more comments
This commit is contained in:
committed by
Sébastien Crozet
parent
cfddaa3c46
commit
edaa36ac7e
@@ -1,22 +1,22 @@
|
||||
[package]
|
||||
name = "rapier-examples-2d"
|
||||
name = "rapier-examples-2d"
|
||||
version = "0.1.0"
|
||||
authors = [ "Sébastien Crozet <developer@crozet.re>" ]
|
||||
authors = ["Sébastien Crozet <sebcrozet@dimforge.com>"]
|
||||
edition = "2021"
|
||||
default-run = "all_examples2"
|
||||
|
||||
[features]
|
||||
parallel = [ "rapier2d/parallel", "rapier_testbed2d/parallel" ]
|
||||
simd-stable = [ "rapier2d/simd-stable" ]
|
||||
simd-nightly = [ "rapier2d/simd-nightly" ]
|
||||
other-backends = [ "rapier_testbed2d/other-backends" ]
|
||||
enhanced-determinism = [ "rapier2d/enhanced-determinism" ]
|
||||
parallel = ["rapier2d/parallel", "rapier_testbed2d/parallel"]
|
||||
simd-stable = ["rapier2d/simd-stable"]
|
||||
simd-nightly = ["rapier2d/simd-nightly"]
|
||||
other-backends = ["rapier_testbed2d/other-backends"]
|
||||
enhanced-determinism = ["rapier2d/enhanced-determinism"]
|
||||
|
||||
[dependencies]
|
||||
rand = "0.8"
|
||||
Inflector = "0.11"
|
||||
lyon = "0.17"
|
||||
usvg = "0.14"
|
||||
rand = "0.8"
|
||||
Inflector = "0.11"
|
||||
lyon = "0.17"
|
||||
usvg = "0.14"
|
||||
|
||||
[dependencies.rapier_testbed2d]
|
||||
path = "../crates/rapier_testbed2d"
|
||||
|
||||
@@ -56,7 +56,7 @@ fn demo_name_from_command_line() -> Option<String> {
|
||||
None
|
||||
}
|
||||
|
||||
#[cfg(any(target_arch = "wasm32", target_arch = "asmjs"))]
|
||||
#[cfg(any(target_arch = "wasm32"))]
|
||||
fn demo_name_from_url() -> Option<String> {
|
||||
None
|
||||
// let window = stdweb::web::window();
|
||||
@@ -64,7 +64,7 @@ fn demo_name_from_url() -> Option<String> {
|
||||
// Some(hash[1..].to_string())
|
||||
}
|
||||
|
||||
#[cfg(not(any(target_arch = "wasm32", target_arch = "asmjs")))]
|
||||
#[cfg(not(any(target_arch = "wasm32")))]
|
||||
fn demo_name_from_url() -> Option<String> {
|
||||
None
|
||||
}
|
||||
|
||||
@@ -82,6 +82,7 @@ pub fn init_world(testbed: &mut Testbed) {
|
||||
link_id,
|
||||
&options,
|
||||
&Isometry::from(target_point),
|
||||
|_| true,
|
||||
&mut displacements,
|
||||
);
|
||||
multibody.apply_displacements(displacements.as_slice());
|
||||
|
||||
Reference in New Issue
Block a user